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

github.com/escalate/hugo-split-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Esnault <matthieu.esn0@gmail.com>2020-06-06 08:37:31 +0300
committerFelix Börner <github@felix-boerner.de>2020-06-10 08:59:30 +0300
commit415005c7a499fcf52da2792f18a3690a76e1abff (patch)
tree197d7112feeb078e1b601bdc122034186822147c
parent7be5e29081031c5370e3f6b3299e543be6de58aa (diff)
Fix the README about the custom style.css
Using the provided example to include a custom css file results in this error when trying to serve the site: ``` Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:5:5: executing "index.html" at <partial "head" .>: error calling partial: "/path/to/site/themes/hugo-split-theme/layouts/partials/head.html:27:11": execute of template failed: template: partials/head.html:27:11: executing "partials/head.html" at <.Site.Params.custom.css.enable>: can't evaluate field enable in type []map[string]interface {} ``` Using [params.custom.css] instead of [[params.custom.css]] solves this issue. The custom file is included and no error occurs when serving the site.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 81c39bf..ed7e94b 100644
--- a/README.md
+++ b/README.md
@@ -119,7 +119,7 @@ Get the ID of the YouTube video and add it to `youtubeId`. Make sure you delete
Put custom css styles in static/css/style.css and enable this css in the config:
```toml
-[[params.custom.css]]
+[params.custom.css]
enable = true
```