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:
authorPavel Kanyshev <aerohub@users.noreply.github.com>2017-04-08 23:10:00 +0300
committerGitHub <noreply@github.com>2017-04-08 23:10:00 +0300
commit4025925fb0e6a2c9fa003c80adca2886d62eb2cd (patch)
treec044eed6ed3e893356eedc0ed874be0d54a06ebc
parent8d63455cdd7778b1d4ed5fc7722f6b4a5d5a69ef (diff)
parentc2f99392641a1f083d7d7286b0e741b6a14cf0c3 (diff)
Merge pull request #5 from gilbsgilbs/custom-css
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>