hugo-theme-zzo icon indicating copy to clipboard operation
hugo-theme-zzo copied to clipboard

Failure of page rendering

Open simplylu opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. Create new project: hugo new site test
  2. Navigate into dir: cd test
  3. Add theme to themes folder: git submodule add https://github.com/zzossig/hugo-theme-zzo.git themes/hugo-theme-zzo
  4. Add theme to config: echo "theme = \"hugo-theme-zzo\" >> config.toml
  5. ... git stuff ...
  6. Start hugo server in draft mode: hugo server -D

Failure

[rtfm@lab blog]$ hugo server -D
Start building sites … 
ERROR 2021/03/13 22:35:28 render of "home" failed: "/home/rtfm/Website/blog/themes/hugo-theme-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 2021/03/13 22:35:28 render of "page" failed: "/home/rtfm/Website/blog/themes/hugo-theme-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 2021/03/13 22:35:28 render of "taxonomy" failed: "/home/rtfm/Website/blog/themes/hugo-theme-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 2021/03/13 22:35:28 render of "taxonomy" failed: "/home/rtfm/Website/blog/themes/hugo-theme-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
Built in 4420 ms
Error: Error building site: failed to render pages: render of "section" failed: "/home/rtfm/Website/blog/themes/hugo-theme-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

Used hugo version: hugo v0.81.0+extended linux/amd64 BuildDate=unknown

simplylu avatar Mar 13 '21 20:03 simplylu

It gives an error because you don't have any params files configured. I followed these steps and it worked

https://github.com/mrapplegate/hugo-theme-zzozzo

gahmasec avatar Apr 28 '21 00:04 gahmasec