diff --git a/modules/wowchemy/layouts/partials/site_head.html b/modules/wowchemy/layouts/partials/site_head.html index 0cefd15d..89964e32 100644 --- a/modules/wowchemy/layouts/partials/site_head.html +++ b/modules/wowchemy/layouts/partials/site_head.html @@ -95,6 +95,14 @@ {{ $has_gallery = true }} {{ end }} {{ end }} + {{ if (eq .Type "landing") }} + {{ range $index, $block := .Params.sections }} + {{ if (gt (len (findRE `\{\{< gallery` $block.content.text 1)) 0) }} + {{ $.Page.Store.Set "has_gallery" true }} + {{ $has_gallery = true }} + {{ end }} + {{ end }} + {{ end }} {{ if $has_gallery | or site.Params.require_fancybox }} {{ printf "" (printf $css.fancybox.url $css.fancybox.version) $css.fancybox.sri | safeHTML }} {{ end }}