Files
neilhanlon.me/layouts/shortcodes/gist.html
T
neil 9c75705dab Fix homepage accuracy, add ko-fi link, restore gist shortcode
- Drop stale 'Rocky Linux' now-card; add Fedora/RISC-V in its place
- Update hero contact handle @NeilHanlon -> @shrug.pw (bsky)
- Add static ko-fi footer link (no overlay/popup)
- Local gist shortcode to replace deprecated built-in
2026-07-12 13:34:15 -04:00

11 lines
460 B
HTML

{{- /*
Local replacement for Hugo's built-in `gist` shortcode, which was
deprecated in v0.143.0. Same call signature:
{{< gist USERNAME GIST_ID [FILE] >}}
Embeds a GitHub gist via its JS include. The optional third argument
scopes the embed to a single file within the gist.
*/ -}}
<script type="application/javascript" src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{ with .Get 2 }}?file={{ . }}{{ end }}"></script>