From 8a6ec79adfd55653b98c63de4adad5f7b340606b Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 26 Dec 2021 12:38:09 -0700 Subject: [PATCH] Copy the youtube shortcode and put it in a figure --- layouts/shortcodes/youtube_figure.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 layouts/shortcodes/youtube_figure.html diff --git a/layouts/shortcodes/youtube_figure.html b/layouts/shortcodes/youtube_figure.html new file mode 100644 index 0000000..9d385f0 --- /dev/null +++ b/layouts/shortcodes/youtube_figure.html @@ -0,0 +1,12 @@ +{{- $pc := .Page.Site.Config.Privacy.YouTube -}} +{{- if not $pc.Disable -}} +{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}} +{{- $id := .Get "id" | default (.Get 0) -}} +{{- $class := .Get "class" | default (.Get 1) -}} +{{- $title := .Get "title" | default "YouTube Video" }} +
+
+ +
+
+{{ end -}} \ No newline at end of file