summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-23 18:19:41 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-23 18:19:41 +0530
commit6be9da45ab606f508023a5b43d39a9afcaa8c803 (patch)
tree6b494e8bc93c40a6d3780387e49fc75575bac090 /layouts/partials/head.html
parent8af56e302db940012e25a8d9279da41c1d6718c0 (diff)
profileMode : init
usaage, in config add params: profileMode: title: "PaperMod" // or default will be site.title imageUrl: "<image_link>"
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index fbc6ee6..60d66eb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -30,6 +30,11 @@
{{ $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)) }}
+{{ $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }}
+<link href="{{ $profileMode.Permalink }}" integrity="{{ $profileMode.Data.Integrity }}" rel="preload stylesheet"
+ as="style">
+{{end}}
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">
<!-- Favicons -->
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">