From 5345b3e6b060dcccbb2eb3e1c0dddb69439fd88d Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Thu, 27 Aug 2020 19:55:39 +0530
Subject: [PATCH] profile-mode: enabled only on
.Site.Params.profileMode.enabled: true
---
layouts/_default/list.html | 2 +-
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 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 }}