mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-30 06:03:56 -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" . }}
|