aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/shortcodes/gist.html
blob: 3d61a8216a6292d74480be609092a94f439594c1 (plain)
1
2
3
4
5
6
7
8
9
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>