1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-12-03 04:18:57 -05:00

better gist shortcode w/ AMP and RSS versions

This commit is contained in:
2020-01-19 18:19:51 -05:00
parent 96e3130ba5
commit 84e38d371a
5 changed files with 12 additions and 39 deletions

View File

@@ -0,0 +1,6 @@
<amp-gist
data-gistid="{{ .Get "id" }}"
{{ with .Get "file" }}data-file="{{ . }}"{{ end }}
layout="fixed-height"
height="500">
</amp-gist>

View File

@@ -0,0 +1 @@
<script src="https://gist.github.com/{{ .Get "id" }}.js{{ with .Get "file" }}?file={{ . }}{{ end }}"></script>

View File

@@ -0,0 +1 @@
<p style="text-align: center;"><a href="https://gist.github.com/{{ .Get "id" }}" target="_blank" rel="noopener">Open this GitHub Gist in a new window.</a></p>