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

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizalsagi@gmail.com>2018-04-30 08:46:49 +0300
committerYurizal Susanto <rizalsagi@gmail.com>2018-04-30 08:56:54 +0300
commitfd561cbe08053f9c0328b6a83019b6decc3ffbe2 (patch)
tree452541d97fa1c52f5750d173255da27f6d2429e5
parent4316f1663a9a82def3aaf83893605398b1fbb0b3 (diff)
Introduce new feature
Add new feature for loading supplied custom CSS
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/meta.html4
2 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3a7f29b..45dc351 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -21,6 +21,9 @@ defaultContentLanguage = "en"
[params]
# If false, use minified CSS (ui.min.css)
debugCSS = false
+ # Custom CSS
+ customCSS = []
+
# List of sections support disqus comments
disqusSections = [ "blog" ]
# Site meta description
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 0edfb38..3fa7c7f 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -15,6 +15,10 @@
{{ else }}
<link rel="stylesheet" href="/css/ui.min.css"/>
{{ end }}
+
+ {{ range .Site.Params.CustomCSS }}
+ <link rel="stylesheet" href="{{ . }}"/>
+ {{ end }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono|Lato|Raleway">