diff options
author | parsiya@gmail.com <parsiya@gmail.com> | 2016-04-02 03:05:47 +0300 |
---|---|---|
committer | parsiya@gmail.com <parsiya@gmail.com> | 2016-04-02 03:05:47 +0300 |
commit | 8268015c926f10e881701426b6dd81b1140f5730 (patch) | |
tree | ffa1c6b1459a13d0291f6aa0043c74f1fd8c1a1e /layouts/partials/header.html | |
parent | 925108992c8fbc5ceed94af6bd894f1120356a35 (diff) |
Add the option to override the built-in css. Fixes #4
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 135cebb..21a770c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,14 +16,20 @@ <!-- goes into the title bar --> <title>{{ .Title }}</title> - <!-- CSS --> + <!-- css --> + <!-- original css --> <link rel="stylesheet" href="{{ "/css/hugo-octopress.css" | absURL }}"> + <!-- css overrides --> + {{ range .Site.Params.custom_css }} + <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> + {{ end }} + <!-- For sidebar icons - TODO: find local icons I guess--> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <!-- if you want your own highlight.css --> - <!-- + <!-- {{ if isset .Site.Params "highlight" }}<link rel="stylesheet" href="{{ "/css/highlight/" | absURL }}{{ .Site.Params.highlight }}.css">{{ end }} --> @@ -33,7 +39,7 @@ <!-- RSS --> {{ $siteTitle := .Site.Title }} {{ $authorName := .Site.Author.name }} - + <!-- {{ with .RSSLink }}<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $siteTitle }} · {{ $authorName }}" />{{ end }} --> @@ -59,4 +65,3 @@ <!-- navigation --> <nav role="navigation">{{ partial "navigation.html" . }}</nav> - |