From c2f99392641a1f083d7d7286b0e741b6a14cf0c3 Mon Sep 17 00:00:00 2001 From: Gilb's Date: Sat, 10 Dec 2016 18:34:53 +0100 Subject: Allow to add custom CSS files. --- exampleSite/config.toml | 13 ++++++++----- layouts/partials/head.html | 9 ++++++--- 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 @@ - - + + {{ .Site.Title }} @@ -14,4 +14,7 @@ - \ No newline at end of file + {{ range .Site.Params.custom_css }} + + {{ end }} + -- cgit v1.2.3