diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2016-10-07 19:50:42 +0300 |
---|---|---|
committer | Matt Stratton <matt.stratton@gmail.com> | 2016-10-07 19:51:23 +0300 |
commit | a2fa7d14ad95d62b9b58fb1808bc767cbce4a553 (patch) | |
tree | 5bbbcdd1e9a7a6aa7abea112f1f36155ed01e0b0 /layouts/partials | |
parent | 8e7be11772ca5b837e02811a0f0228f3e5ea3b2a (diff) |
Add support for color themes
Allows for setting either the orange or blue overall color scheme in `config.toml`.
Fixes #27
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head_includes.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 038cbfd..f8464e5 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,6 +1,10 @@ <!-- Bootstrap --> -<link href="{{ .Site.BaseURL }}css/site.css" rel="stylesheet"> <link href="{{ .Site.BaseURL }}css/bootstrap.css" rel="stylesheet"> +{{ if isset $.Site.Params "site_theme"}} +<link href="{{ .Site.BaseURL }}css/{{ $.Site.Params.site_theme}}.css" rel="stylesheet"> +{{ else }} +<link href="{{ .Site.BaseURL }}css/orange.css" rel="stylesheet"> +{{ end }} <link href="{{ .Site.BaseURL }}font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href="{{ .Site.BaseURL }}css/bootstrap3_player.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet"> |