From 091157b576ba7341e7a9a88e5c23d2b17f90209d Mon Sep 17 00:00:00 2001 From: zzossig Date: Wed, 6 Nov 2019 12:07:30 +0900 Subject: [PATCH] custom css support --- README.md | 1 + exampleSite/config.toml | 1 + layouts/partials/head/styles.html | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 850bfca..ba619d2 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,7 @@ You shoud make your own menu. ```bash description = "The Zzo theme for Hugo example site." +custom_css = ["css/foo.css", "css/bar.css"] # body enableToc = true diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fae48e5..e1f1df5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,7 @@ rssLimit = 100 [params] description = "The Zzo theme for Hugo example site." + custom_css = [] # body enableToc = true diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index 2ae9045..445f7be 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -2,3 +2,7 @@ {{ $main_template := resources.Get "sass/main.scss" }} {{ $main_style := $main_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $main_options | minify }} + +{{ range .Site.Params.custom_css -}} + +{{- end }} \ No newline at end of file