Merge pull request #2813 from ZhenShuo2021/gist

 Feat: add CSS for gist shortcode
This commit is contained in:
Nuno C.
2026-03-11 00:23:11 +00:00
committed by GitHub
4 changed files with 106 additions and 3 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
<script src="https://gist.github.com/{{- index .Params 0 -}}/{{- index .Params 1 -}}.js{{- if len .Params | eq 3 -}}
?file={{- index .Params 2 -}}
{{- end -}}"></script>
<div class="gist-container">
<script src="https://gist.github.com/{{- index .Params 0 -}}/{{- index .Params 1 -}}.js{{- if len .Params | eq 3 -}}
?file={{- index .Params 2 -}}
{{- end -}}"></script>
</div>