diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-05-09 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-05-09 00:00:00 +0000 |
commit | b50a7eb7fa8232e66402eb0ca097d3c2423a4aaa934458906be3390d0966aa99 (patch) | |
tree | 474826e3ed32f87f267c16981939b6a33f8c4bac63ed9d5c96667f00e1c509ae | |
parent | 7ba1562e0912d6db13e7d195b087316a00764ca6731bd77cf634c7c47bceff4c (diff) | |
download | hugo-theme-journal-0.5.3.tar.gz hugo-theme-journal-0.5.3.zip |
Allow custom CSS overridesv0.5.3
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,2 @@ * fix spacing * test internationalization -* add color themes 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 }} |