Skip to content

Commit effdc60

Browse files
jkodroffclaude
andauthored
Add custom gist shortcode to replace deprecated Hugo built-in (#16403)
Creates a custom gist.html shortcode to replace Hugo's deprecated built-in gist shortcode, eliminating the deprecation warning. The custom implementation maintains full compatibility with all 34 existing gist usages across blog posts. Fixes #16396 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent bbe4d34 commit effdc60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layouts/shortcodes/gist.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>

0 commit comments

Comments
 (0)