website-theme/layouts/shortcodes/displayToot.html

6 lines
188 B
HTML

{{ $toot_reference := .Get 0 }}
{{ $url := printf "static/data/toots/%s.json" $toot_reference }}
{{ $dataJ := getJSON $url }}
{{ .Scratch.Set "toot" $dataJ }}
{{ partial "toot.html" . }}