mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
7 lines
275 B
HTML
7 lines
275 B
HTML
{{ $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 }}
|
|
|
|
{{ .Scratch.Set "toot" $dataJ }}
|
|
{{ partial "toot.html" . }}
|