Track3 / hermit

A minimal & fast Hugo theme for bloggers
https://hugo-theme-hermit.netlify.com/
MIT License
1.12k stars 304 forks source link

Missing Menu and social icons on main page #83

Closed shibumi closed 5 years ago

shibumi commented 5 years ago

I have the following website: https://github.com/shibumi/nullday.de/tree/hermit

when I serve it via hugo locally everything works fine, but when I serve it via nginx it shows hermit, but without main page + social icons (see https://nullday.de) any idea?

shibumi commented 5 years ago

I have tracked this issue down.. and I think it's a bug in hugo:

https://github.com/gohugoio/hugo/issues/6096

shibumi commented 5 years ago

Ok I have found the issue... it happens only when I have categories = "" in my configuration file.

Yes, I should possibly use your configuration and modify it earlier instead of using the configuration for the other theme and just starting to use it with your theme.. but I still think this shouldn't really happen oO your theme should ignore such categories = "" option or at least trigger a warning message or something. I wasted several days with looking for this bug, lol.

Track3 commented 5 years ago

Did you see the the pinned issue? I should have replied to you earlier but a little bit busy these days.

This issue is bugging me for months as well. I still think it's a bug of Hugo, or in another point of view , since categories = "" is a incorrect config, Hugo should handle this itself, not in the theme level. I don't know why so many people (include myself) use categories = "" to disable categories, the docs doesn't do it like this: https://gohugo.io/content-management/taxonomies#example-removing-default-taxonomies

shibumi commented 5 years ago

oh my god.. I am so blind. No I didn't see the pinned issue, I was just searching the issues with words like menu disappeared or others. It confused me a lot, because when I did hugo serve it worked fine, but when I generated the content the content was different.