summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-27 19:55:39 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-27 19:55:39 +0530
commit5345b3e6b060dcccbb2eb3e1c0dddb69439fd88d (patch)
tree55f2f8af477e48021ad412a3990e8ccb7d764966 /layouts
parent7f70d98f952172b95d5a5396d3f282264d7d39cf (diff)
profile-mode: enabled only on .Site.Params.profileMode.enabled: true
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/head.html2
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">