diff options
author | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-12-31 14:05:57 +0300 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-12-31 14:45:19 +0300 |
commit | 30ac2064dea728d41b3adf6dce68fbb570301816 (patch) | |
tree | c09bdf496cfaae384cb4045444e5e96f071d0a7b /layouts | |
parent | ad0c418ab9c8f5b1dcc8af0508a7f165b025f42a (diff) |
Allow custom stylesheet
Fixes: #54
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3119aec..6d80b6a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -53,10 +53,13 @@ <link rel="stylesheet" href="{{ "css/style.css" | absURL }}"> <link rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/9.15.10/styles/github.min.css"> - {{- if eq .Site.Params.comment.type "gitalk"}} - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css"> + {{- if eq .Site.Params.comment.type "gitalk"}} + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css"> {{- end }} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.css"> + {{ with .Site.Params.customCSS }} + <link rel="stylesheet" href="{{ . | absURL }}">{{ end }} + {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/google_news.html" . -}} |