diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-27 19:55:39 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-27 19:55:39 +0530 |
| commit | 5345b3e6b060dcccbb2eb3e1c0dddb69439fd88d (patch) | |
| tree | 55f2f8af477e48021ad412a3990e8ccb7d764966 | |
| parent | 7f70d98f952172b95d5a5396d3f282264d7d39cf (diff) | |
profile-mode: enabled only on .Site.Params.profileMode.enabled: true
| -rw-r--r-- | layouts/_default/list.html | 2 | ||||
| -rw-r--r-- | layouts/partials/head.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3f02b7b..edc9624 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 60d66eb..8c88a68 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 }} <link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style"> -{{ if (and (.Site.Params.profileMode) (.IsHome)) }} +{{ if (and (.Site.Params.profileMode.enabled) (.IsHome)) }} {{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }} <link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet" as="style"> |
