website-theme/layouts/shortcodes/displayOnlineToot.html

8 lines
275 B
HTML
Raw Normal View History

{{ $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 }}
2022-06-02 20:20:32 -04:00
{{ .Scratch.Set "toot" $dataJ }}
{{ partial "toot.html" . }}