zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

Menu not rendering #32

Closed weeyin83 closed 4 years ago

weeyin83 commented 4 years ago

I am running hugo locally and when installing the cupper theme, I get no side bar menu listed.

Is there something I need to explicitly call out or change?

zwbetz-gh commented 4 years ago

You will need to add menu config to your config file. For a sample, see

https://github.com/zwbetz-gh/cupper-hugo-theme/blob/1ca724981052ff0b3e7ed49a05fc0c6c16ced544/exampleSite/config.yaml#L37-L53

weeyin83 commented 4 years ago

Thanks @zwbetz-gh, I am using the examplesite config file, and I am not getting anything rendered down the left hand side. The menu isn't there.

zwbetz-gh commented 4 years ago

Share your repo if you can. Hard to troubleshoot this in the dark.

weeyin83 commented 4 years ago

My repo is the basic Hugo install with the cupper theme, there isn't a lot there, I am using most of the example site files to start to figure out how things work.

https://github.com/weeyin83/Hugo-workinprogress

zwbetz-gh commented 4 years ago

Found your issue :)

Your config.toml is overriding your config.yaml

So either delete your config.toml or rename it to something like config.toml.bak. Then re run hugo server and you should see your menu

zwbetz-gh commented 4 years ago

It runs fine for me:

$ hugo server

                   | EN
-------------------+-----
  Pages            | 37
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 32
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 59 ms
Watching for changes in ~/development/playground/hugo/Hugo-workinprogress/{archetypes,content,themes}
Watching for config changes in ~/development/playground/hugo/Hugo-workinprogress/config.yaml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

There may be another issue on your end.