mirror of https://github.com/escalate/hugo-split-theme.git

Matthieu Esnault
06.37.2020 415005c7a499fcf52da2792f18a3690a76e1abff
refs
author Matthieu Esnault <matthieu.esn0@gmail.com>
Saturday, June 6, 2020 07:37 +0200
committer Felix Börner <github@felix-boerner.de>
Wednesday, June 10, 2020 07:59 +0200
commit415005c7a499fcf52da2792f18a3690a76e1abff
tree 197d7112feeb078e1b601bdc122034186822147c tree | zip | gz
parent 7be5e29081031c5370e3f6b3299e543be6de58aa view | 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.
1 files modified
2 ■■■ changed files
README.md 2 ●●● diff | view | raw | blame | history