diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-04-02 22:52:00 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-04-02 22:52:00 -0400 |
commit | 0c25632a7de1cfce8289b654586d56fe39a19ac0 (patch) | |
tree | e69bf0684ef8f740329edf6960f4de03c2762aea | |
parent | fb3f9b2d8146d3bcf6bac1fcc0113c242b2c42ed (diff) | |
download | thedroneely.com-0c25632a7de1cfce8289b654586d56fe39a19ac0.tar.gz thedroneely.com-0c25632a7de1cfce8289b654586d56fe39a19ac0.tar.bz2 thedroneely.com-0c25632a7de1cfce8289b654586d56fe39a19ac0.zip |
generators/hugo/layouts/shortcodes: Add gist
-rw-r--r-- | generators/hugo/themes/tdro/layouts/shortcodes/gist.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/gist.html b/generators/hugo/themes/tdro/layouts/shortcodes/gist.html new file mode 100644 index 0000000..3d61a82 --- /dev/null +++ b/generators/hugo/themes/tdro/layouts/shortcodes/gist.html @@ -0,0 +1,10 @@ +{{- $user := default "gdb" (.Get "user" | default (.Get 0)) -}} +{{- $gist := default "b6365e79be6052e7531e7ba6ea8caf23" (.Get "gist" | default (.Get 1)) -}} +{{- $file := default "" (.Get "file" | default (.Get 2)) -}} + +<github-gist> + <script + type="application/javascript" + src="https://gist.github.com/{{ $user }}/{{ $gist }}.js?file={{ $file }}"> + </script> +</github-gist> |