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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2018-08-14 05:09:37 +0300
committerHauke Stieler <mail@hauke-stieler.de>2018-08-14 05:09:37 +0300
commitb553d8a226ec1bbdc754b5f5a7307e7f41db4dd3 (patch)
tree0b5854f47071b41b2d8c8b138f49639c0e9b4675 /layouts
parent89493fe7042dd63c9c1faf99c2a07059f3f7c7aa (diff)
Add custom CSS files.
Specify under 'params' an 'customCSS' array. Example: A css file style.css is in the folder 'your-app/static/css/' then you just add 'customCSS = ['style.css']' to the params-section in the config.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ff9c187..aebe483 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -36,6 +36,11 @@
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico" />
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/apple-touch-icon.png" />
+
+ {{ range .Site.Params.customCSS }}
+ <link rel="stylesheet" href="{{ (print "css/" . ) | absURL }}">
+ {{ end }}
+
{{ if eq .URL "/" }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}