diff --git a/themes/quark-hugo/layouts/_default/modular.html b/themes/quark-hugo/layouts/_default/modular.html index c0f2b1e..cc21c0e 100644 --- a/themes/quark-hugo/layouts/_default/modular.html +++ b/themes/quark-hugo/layouts/_default/modular.html @@ -1,18 +1,8 @@ -{{ define "hero" }} - {{ with partial "modular/_dataGetter.html" . }} - {{ range . }} - {{ if eq .modularLayout "hero" }} - {{ partial "modular/hero.html" . }} - {{end}} - {{ end }} - {{ end }} -{{ end }} - {{ define "body" }} {{ $pageObj := . }} {{ with partial "modular/_dataGetter.html" . }} {{ range . }} - {{ if not (eq .modularLayout "hero") }} + {{ if or (not (isset . "enabled")) .enabled }} {{ partial (print "modular/" .modularLayout ".html") (merge . (dict "page" $pageObj) ) }} {{ end }} {{ end }} diff --git a/themes/quark-hugo/layouts/partials/modular/hero.html b/themes/quark-hugo/layouts/partials/modular/hero.html index f54b340..b23fc11 100644 --- a/themes/quark-hugo/layouts/partials/modular/hero.html +++ b/themes/quark-hugo/layouts/partials/modular/hero.html @@ -7,6 +7,13 @@
{{ .content | markdownify }} + {{ with .links }} +

+ {{ range . }} + {{ .text }} + {{ end }} +

+ {{ end }}