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

github.com/Chen-Zhe/photo-grid.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilb's <gilbsgilbert@gmail.com>2016-12-10 20:34:53 +0300
committerGilb's <gilbsgilbert@gmail.com>2016-12-10 20:34:53 +0300
commitc2f99392641a1f083d7d7286b0e741b6a14cf0c3 (patch)
tree4eb8f747b38f3172a7adbab957e86b81c18f96ad
parent52446a90569471a9bcc9c421910655ec148d9aef (diff)
Allow to add custom CSS files.
-rw-r--r--exampleSite/config.toml13
-rw-r--r--layouts/partials/head.html9
2 files changed, 14 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 52969fb..dc1c51f 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -18,12 +18,15 @@ publishdir = "public"
author = "Pavel Kanyshev"
description = "Hugrid - grid theme for Hugo with an expanding image preview."
keywords = "Hugo, Hugo theme, grid theme, portfolio, bookmarks, collection, contacts"
-
+
# Body background color
- bodybgcolor = "#f9f9f9"
-
+ bodybgcolor = "#f9f9f9"
+
# Preview container button text
buttontext = "Get the theme"
-
+
# Footer text
- footertext = "Made by [Codrops](http://tympanus.net/codrops/2013/03/19/thumbnail-grid-with-expanding-preview/), [Hugo](http://gohugo.io) and [me](https://github.com/aerohub)" \ No newline at end of file
+ footertext = "Made by [Codrops](http://tympanus.net/codrops/2013/03/19/thumbnail-grid-with-expanding-preview/), [Hugo](http://gohugo.io) and [me](https://github.com/aerohub)"
+
+ # add extra-css
+ # custom_css = ['css/extra1.css', 'css/extra2.css']
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 56aba86..e39d567 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,6 @@
<meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}" />
<meta name="keywords" content="{{ with .Site.Params.keywords }}{{ . }}{{ end }}" />
@@ -14,4 +14,7 @@
</style>
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/default.css" />
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/component.css" />
- <script src="{{ .Site.BaseURL }}js/modernizr.custom.js"></script> \ No newline at end of file
+ {{ range .Site.Params.custom_css }}
+ <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
+ {{ end }}
+ <script src="{{ .Site.BaseURL }}js/modernizr.custom.js"></script>