summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
commitb50a7eb7fa8232e66402eb0ca097d3c2423a4aaa934458906be3390d0966aa99 (patch)
tree474826e3ed32f87f267c16981939b6a33f8c4bac63ed9d5c96667f00e1c509ae /layouts
parent7ba1562e0912d6db13e7d195b087316a00764ca6731bd77cf634c7c47bceff4c (diff)
downloadhugo-theme-journal-0.5.3.tar.gz
hugo-theme-journal-0.5.3.zip
Allow custom CSS overridesv0.5.3
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9f6faf9..de87277 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -8,7 +8,13 @@
<meta name="keywords" content="{{ $.Site.Params.keywords }}">
{{- end }}
<meta name="theme-color" content="#000">
+ {{- if .Site.Params.custom_css }}
+ {{- range .Site.Params.custom_css }}
+ <link rel="stylesheet" type="text/css" href="{{ relURL . }}">
+ {{- end }}
+ {{- else }}
<link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/style.css").RelPermalink }}">
+ {{- end }}
{{- if $.Site.Params.title }}
<title>{{ .Title }}</title>
{{- end }}