Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Collas-Arundell <me@kca.id.au>2020-04-06 10:47:48 +0300
committerKevin Collas-Arundell <me@kca.id.au>2020-04-06 10:57:16 +0300
commitc6754e5264666460139512ec6ff8858f84a5e08c (patch)
treea4af5f923b5572db81f0bd5f021100bcb364ce1c /layouts/partials/head.html
parent43d588d7cdfdda057b91af5213da47522d3a2e87 (diff)
Add support for custom CSS files
This allows end users to add additional CSS files for use in their site. They would do this by adding ``` [params] customCSS = [ "mycss.css" ] ``` into their config file.
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d3b5cb8..ff493f8 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,6 +14,10 @@
<link rel="stylesheet" href="{{ "css/style.css" | absURL }}?rnd={{ now.Unix }}" />
+{{ range .Site.Params.customCSS -}}
+<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
+{{- end }}
+
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}