profile-mode: enabled only on .Site.Params.profileMode.enabled: true

This commit is contained in:
Aditya Telange 2020-08-27 19:55:39 +05:30
parent 7f70d98f95
commit 5345b3e6b0
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 2 additions and 2 deletions

View File

@ -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 */}}

View File

@ -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">