From e57d52f0a1353533362b1e7dbd1a18796a76f01d Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 14 Jan 2022 12:28:35 +0530 Subject: [PATCH] Add profileMode as a feature loadble --- assets/css/{common => includes}/profile-mode.css | 0 layouts/partials/head_styles.html | 5 +++++ 2 files changed, 5 insertions(+) rename assets/css/{common => includes}/profile-mode.css (100%) diff --git a/assets/css/common/profile-mode.css b/assets/css/includes/profile-mode.css similarity index 100% rename from assets/css/common/profile-mode.css rename to assets/css/includes/profile-mode.css diff --git a/layouts/partials/head_styles.html b/layouts/partials/head_styles.html index 1a03e1f..116bbab 100644 --- a/layouts/partials/head_styles.html +++ b/layouts/partials/head_styles.html @@ -18,6 +18,11 @@ {{- $includes = (append $search $includes) }} {{- end }} +{{- if .Site.Params.profileMode.enabled }} + {{- $profileMode := (resources.Get "css/includes/profile-mode.css") }} + {{- $includes = (append $profileMode $includes) }} +{{- end }} + {{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} {{- /* order is important */}}