Update to Hugo v0.143.1

This commit is contained in:
Brandon Rozek 2025-02-16 11:03:28 -05:00
parent 615e03bca3
commit 525b28e98b
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567
13 changed files with 36 additions and 49 deletions

View file

@ -1,7 +1,17 @@
{{ $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 }}
{{ $dataJ := dict }}
{{ $url := $api_url }}
{{ with try (resources.GetRemote $url) }}
{{ with .Err }}
{{ errorf "Unable to get remote resource %s: %s" $url . }}
{{ else with .Value }}
{{ $dataJ = . | transform.Unmarshal }}
{{ else }}
{{ errorf "Unable to get remote resource %s" $url }}
{{ end }}
{{ end }}
{{ .Scratch.Set "toot" $dataJ }}
{{ partial "external/toot.html" . }}