zwbetz-gh/cupper-hugo-theme

Menu not rendering

weeyin83 opened this issue · 6 comments

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?

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

menu:
nav:
- name: Home
url: /
weight: 1
- name: Blog
url: /post/
weight: 2
- name: Tags
url: /tags/
weight: 3
- name: About
url: /about/
weight: 4
- name: RSS
url: /index.xml
weight: 5

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.

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

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

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

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.