seanlane / gochowdown

Hugo theme based on the Jekyll chowdown theme
MIT License
71 stars 51 forks source link

Main Menu does not appear #24

Open HerminioSabino opened 3 years ago

HerminioSabino commented 3 years ago

First I want to congratulate you for the great job in developing the theme. I'm using it as a base on the blog I'm developing through R and Blogdown. everything went well, but the main menu does not appear when I load the html. I tried to modify config.toml and config.yml, but without success.

what can I be doing wrong to not be able to reproduce as the model?

https://herminiosabino.github.io/clara/

I want to thank's in advance.

Sincerely.

seanlane commented 3 years ago

I'm not sure where the issue would be. Can you post the version of Hugo you are using to generate the site? (hugo version)

0x4c47 commented 3 years ago

I'm running into the very same issue.

/app/chowdown $ hugo version
Hugo Static Site Generator v0.71.1/extended linux/arm64 BuildDate: unknown

Screenshot: Screenshot from 2021-03-08 19-21-53

The nav tag seems to be empty for some reason: Screenshot from 2021-03-08 19-18-54

EDIT: Ok, so I'm new to the whole Hugo thing so I don't know what the "common knowledge" is there but I figured it out now.

I looked through the example site again and noticed the menu is actually configured in config.yml. On top of that the config.yml isn't used if a config.toml exists which is automatically created on site creation. I'm using this in within a container so everything was a bit more dynamic.

So the solution for me:

  1. Create site.
  2. Remove config.toml.
  3. Use config.yml from example site in repository and optionally modify it.

I guess it would be nice to have that within the getting started part.

HerminioSabino commented 3 years ago

I'm used version ‘0.81.0’ I'm running in R using blogdown packages

seanlane commented 3 years ago

Ah, yeah, I use config.yml, I should probably test the theme with the other config formats. Glad you figured it out, going to close this for now but feel free to open it again if there's more questions.

seanlane commented 3 years ago

@HerminioSabino Can you try the same steps as above? Delete the generated config.toml and use the config.yml file?

HerminioSabino commented 3 years ago

Yes, I tried to do the mentioned procedure. But, the menu did not appear.

seanlane commented 3 years ago

ok, can you post the contents of your config file? (striping out anything private, of course). I attempted to see how you're using the theme at the link you posted previously (https://herminiosabino.github.io/clara/) and this appears to be the corresponding GitHub repository: https://github.com/HerminioSabino/clara

Those seem to indicate that the theme in use is "parsa-hugo"

HerminioSabino commented 3 years ago

Hi, first I want to thank you for your help, I really changed the theme to see other possibilities, but I already went back to the gochowdown theme and redid the whole procedure and using the example site .yml, but without success. The configuration file is in the repository. https://github.com/HerminioSabino/clara