{{ $toot_reference := .Get 0 }} {{ $url := printf "static/data/toots/%s.json" $toot_reference }} {{ $dataJ := getJSON $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 }}