{{ $url := urls.Parse (.Get 0) }} {{ $status_id := index (last 1 (split $url.Path "/")) 0 }} {{ $api_url := printf "%s://%s/api/v1/statuses/%s" $url.Scheme $url.Host $status_id }} {{ $dataJ := getJSON $api_url }} {{ with $dataJ }} {{ if ne .content "" }}

Tooted on

{{ .content | safeHTML }} {{ if gt (len .media_attachments) 0 }}
{{ range .media_attachments}} {{ if eq .type "image" }} {{ .description }} {{ end }} {{ end }}
{{ end }}
{{ range .tags }} {{ end }}
{{ $post_url := urls.Parse .url }} {{ $status_id := index (last 1 (split $post_url.Path "/")) 0 }} {{ $social_url := printf "%s://%s/interact/%s" $post_url.Scheme $post_url.Host $status_id }} {{ $reply_url := printf "%s?type=reply" $social_url }} {{ $favorite_url := printf "%s?type=favourite" $social_url }} {{ $boost_url := printf "%s?type=reblog" $social_url }} {{ .Params.replies_count }} {{ .Params.reblogs_count }} {{ .Params.favourites_count }} | Source: {{ .url }}
{{ end }} {{ end }}