diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f2e5acd62b..0f198ee01c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -44,6 +44,59 @@ + {{ with (.Store.Get "youtube") }} + + {{ end }} diff --git a/layouts/shortcodes/youtube-embed.html b/layouts/shortcodes/youtube-embed.html index baf6682055..9789b226ed 100644 --- a/layouts/shortcodes/youtube-embed.html +++ b/layouts/shortcodes/youtube-embed.html @@ -1,56 +1,2 @@ +{{- .Page.Store.Set "youtube" true -}}
-{{ if page.Scratch.Get "youtube-embed" | default "incomplete" | ne "setup" }} -{{ page.Scratch.Set "youtube-embed" "setup" }} - -{{ end }}