diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html index 915ef98..733fbcd 100644 --- a/layouts/shortcodes/youtube.html +++ b/layouts/shortcodes/youtube.html @@ -1,7 +1,10 @@ +{{ $.Scratch.Set "maxwidth" ( $.Page.Site.Params.youtube.maxwidth ) }} +{{ $.Scratch.Set "wpad" ( $.Page.Site.Params.youtube.wpad ) }} +{{ $.Scratch.Set "nothumb" ( $.Page.Site.Params.youtube.disable_thumb ) }} {{ if .IsNamedParams }} -{{ $.Scratch.Set "maxwidth" ( $.Page.Site.Params.youtube.maxwidth | .Get "maxwidth" ) }} -{{ $.Scratch.Set "wpad" ( $.Page.Site.Params.youtube.wpad | .Get "wpad" ) }} -{{ $.Scratch.Set "nothumb" ( $.Page.Site.Params.youtube.disable_thumb | .Get "nothumb" ) }} +{{ with .Get "maxwidth" }}{{ $.Scratch.Set "maxwidth" . }}{{ end }} +{{ with .Get "wpad" }}{{ $.Scratch.Set "wpad" . }}{{ end }} +{{ with .Get "nothumb" }}{{ $.Scratch.Set "nothumb" . }}{{ end }}