mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
profile-mode: enabled only on .Site.Params.profileMode.enabled: true
This commit is contained in:
parent
7f70d98f95
commit
5345b3e6b0
@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ if (and .Site.Params.profileMode .IsHome) }}
|
{{ if (and .Site.Params.profileMode.enabled .IsHome) }}
|
||||||
{{- partial "indexProfile.html" . }}
|
{{- partial "indexProfile.html" . }}
|
||||||
{{else}} {{/* if not profileMode */}}
|
{{else}} {{/* if not profileMode */}}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }}
|
{{ $stylesheet := slice $anoldhope $style | resources.Concat "css/stylesheet.css" | minify | fingerprint }}
|
||||||
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
|
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet"
|
||||||
as="style">
|
as="style">
|
||||||
{{ if (and (.Site.Params.profileMode) (.IsHome)) }}
|
{{ if (and (.Site.Params.profileMode.enabled) (.IsHome)) }}
|
||||||
{{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }}
|
{{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }}
|
||||||
<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
|
<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
|
||||||
as="style">
|
as="style">
|
||||||
|
Loading…
Reference in New Issue
Block a user