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.
This commit is contained in:
Kevin Collas-Arundell 2020-04-06 17:47:48 +10:00
parent 43d588d7cd
commit c6754e5264

View File

@ -14,6 +14,10 @@
<link rel="stylesheet" href="{{ "css/style.css" | absURL }}?rnd={{ now.Unix }}" /> <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/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}