diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/reddit.html')
-rw-r--r-- | themes/default/layouts/shortcodes/reddit.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/reddit.html b/themes/default/layouts/shortcodes/reddit.html new file mode 100644 index 0000000..10ef0b9 --- /dev/null +++ b/themes/default/layouts/shortcodes/reddit.html @@ -0,0 +1,29 @@ +{{- $path := default "linux/comments/aeufh6/vlc_has_now_reached_3_billions_downloads_and/edsvibz" (.Get "path" | default (.Get 0)) -}} +{{- $depth := default "2" (.Get "depth" | default (.Get 1)) -}} +{{- $context := default "1" (.Get "context" | default (.Get 2)) -}} +{{- $theme := default "light" (.Get "theme" | default (.Get 3)) -}} +{{- $showtitle := default "true" (.Get "showtitle" | default (.Get 4)) -}} +{{- $showedits := default "false" (.Get "showedits" | default (.Get 5)) -}} +{{- $showmedia := default "false" (.Get "showmedia" | default (.Get 6)) -}} +{{- $showmore := default "false" (.Get "showmore" | default (.Get 7)) -}} + +<reddit-comment> + <iframe loading="lazy" + id="reddit-embed" + src="https://www.redditmedia.com/r/{{ trim $path "/" }}/ +?depth={{ $depth }} +&embed=true +&showmore={{ $showmore }} +&showtitle={{ $showtitle }} +&context={{ $context }} +&showmedia={{ $showmedia }} +&theme={{ $theme }} +&showedits={{ $showedits }} +&created={{ now.Format "2006-01-02T15:04:05Z" }}" + sandbox="allow-scripts allow-same-origin allow-popups" + style="border: none;" + height="452" + width="640" + scrolling="no" + ></iframe> +</reddit-comment> |