zzossig / hugo-theme-zzo

Make a blog with hugo zzo theme!
https://themes.gohugo.io//theme/hugo-theme-zzo/en/
MIT License
743 stars 256 forks source link

<index .Site.Params.themeOptions 0> error #364

Closed m9810223 closed 3 years ago

m9810223 commented 3 years ago

can you help this? thanks.

1: config.toml

baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme="zzo"
Change of config file detected, rebuilding site.
2020-12-08 23:20:14.231 +0800
ERROR 2020/12/08 23:20:15 render of "taxonomy" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/terms.html:17:33: executing "_default/terms.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:20:15 render of "home" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: index.html:17:33: executing "index.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:20:15 render of "taxonomy" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/terms.html:17:33: executing "_default/terms.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:20:15 render of "section" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/list.html:17:33: executing "_default/list.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:20:15 TOCSS: failed to transform "main_parsed.scss" (text/x-scss): resource "scss/sass/main.scss_b4f67ac5085b89b62b54c1923e5a9145" not found in file cache
ERROR 2020/12/08 23:20:15 failed to render pages: render of "term" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/taxonomy.html:17:33: executing "_default/taxonomy.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
Rebuilt in 1363 ms

2: use config/_default/*

Start building sites … 
ERROR 2020/12/08 23:23:03 render of "home" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: index.html:17:33: executing "index.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:23:03 render of "page" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/single.html:17:33: executing "_default/single.html" at <index .Site.Params.themeOptions 0>: error 
calling index: index of untyped nil
ERROR 2020/12/08 23:23:03 render of "taxonomy" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/terms.html:17:33: executing "_default/terms.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:23:03 render of "term" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/taxonomy.html:17:33: executing "_default/taxonomy.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
ERROR 2020/12/08 23:23:03 TOCSS: failed to transform "main_parsed.scss" (text/x-scss): resource "scss/sass/main.scss_b4f67ac5085b89b62b54c1923e5a9145" not found in file cache
Built in 99 ms
Error: Error building site: failed to render pages: render of "section" failed: "xxx\themes\zzo\layouts\_default\baseof.html:17:33": execute of template failed: template: _default/list.html:17:33: executing "_default/list.html" at <index .Site.Params.themeOptions 0>: error calling index: index of untyped nil
zzossig commented 3 years ago

You need to add some params to params.toml file. Especially, the themeOptions param. You can check it here https://zzo-docs.vercel.app/zzo/configuration/configfiles/