diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3f02b7bc..edc96245 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "main" }} -{{ if (and .Site.Params.profileMode .IsHome) }} +{{ if (and .Site.Params.profileMode.enabled .IsHome) }} {{- partial "indexProfile.html" . }} {{else}} {{/* if not profileMode */}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 60d66eb6..8c88a684 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -30,7 +30,7 @@ {{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }} -{{ if (and (.Site.Params.profileMode) (.IsHome)) }} +{{ if (and (.Site.Params.profileMode.enabled) (.IsHome)) }} {{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }}