diff options
author | Thorsten <thenktor@users.noreply.github.com> | 2020-07-27 10:12:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 10:12:55 +0300 |
commit | 9f3b6d2076aa6f0bb927f34f8f81de3ab9ce046c (patch) | |
tree | 1eabd54c76a672bf11880aead848e12020ab9258 | |
parent | 2bb4ff73056f6b9ec4d5e43d9abe883bb62c9f9d (diff) |
Update baseof.html
Added the possibility to define custom CSS files in config file like this: 'customCSS = ["css/custom.css"]'
-rw-r--r-- | layouts/_default/baseof.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2c3a98e..926c1f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,6 +9,9 @@ {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} <link rel="stylesheet" href="{{ "css/style.css" | relURL }}"> + {{ range .Site.Params.customCSS -}} + <link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}"> + {{- end }} {{ with .OutputFormats.Get "RSS" -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{- end }} |