From 8bd3be35bccd742bfa91793851443724d279824e Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 10 Feb 2024 10:04:14 -0500 Subject: Update project structure + new shortcodes --- themes/cranky/layouts/shortcodes/youtubepl.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 themes/cranky/layouts/shortcodes/youtubepl.html (limited to 'themes/cranky/layouts/shortcodes/youtubepl.html') diff --git a/themes/cranky/layouts/shortcodes/youtubepl.html b/themes/cranky/layouts/shortcodes/youtubepl.html new file mode 100644 index 0000000..c0e3d7c --- /dev/null +++ b/themes/cranky/layouts/shortcodes/youtubepl.html @@ -0,0 +1,10 @@ +{{- $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 -}} -- cgit v1.2.3