ribice / kiss

Stupidly simple Hugo blogging theme
https://themes.gohugo.io/theme/kiss/
MIT License
295 stars 130 forks source link

hugo v0.42.1 incompatibility with list.html #37

Closed nhejazi closed 6 years ago

nhejazi commented 6 years ago

I've been using this theme for one of my personal Hugo-based websites. I just upgraded the submodule oI had of this theme from d6a5676 to master and found that running hugo build via the blogdown R package (via blogdown::build_site()) is now broken, with error

Rscript -e "blogdown::build_site()"
Building sites … ERROR 2018/06/18 11:47:45 Error while rendering "taxonomy" in "": html/template:_default/list.html:1:12: no such template "theme/index.html"

In investigating this, I found that the source of the error is the presence of the style file layouts/_default/list.html. As far as I can tell, simply removing this file resolves the problem. This file has apparently been around for quite a while but I had not encountered any error caused by this when using previous versions of Hugo. Is this a known issue? If so, is the fix provided in #38 appropriate?

tun commented 6 years ago

I have the same issue and also I removed the line from layouts/_default/list.html but I think #38 is not the right solution because the build will lack of a tag/category list page.

tun commented 6 years ago

Just made a pull request #39 with just a path fix to make it work properly and without broken list pages.

ribice commented 6 years ago

Resolved with #39

nhejazi commented 6 years ago

Great! Thanks for fixing this with a better solution @tun, and thanks for quickly merging @ribice.