lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
199 stars 98 forks source link

`About` Not Showing up in sidebar #121

Closed camachom closed 1 year ago

camachom commented 1 year ago

Hello! Thanks for making this awesome theme. Here is the issue I'm running into:

I have a fairly standard config with:

menu = [
  { Name = "About", URL = "/about/", HasChildren = false },
  { Name = "Posts", URL = "/posts/", Pre = "Recent", HasChildren = true, Limit = 5 },
] # MENU PLACEHOLDER

And my file structure is simple:

Screenshot 2023-08-20 at 10 02 32 PM

But the About link does not show up: My Blog However, if I go the about page directly, it renders: https://camachom.github.io/about Here is the repository if anybody wants to look at the code, but again, I'm not doing anything custom.

Any ideas on how to debug? Thanks

lukeorth commented 1 year ago

Hi @camachom - I'm glad you're enjoying the theme! Sorry you're having issues though.

I cloned your repo and added a generic config.toml file. When I ran hugo server it generates the site with the About link in the sidebar, so I'm not able to reproduce the issue.

image

That said, I'm not sure if maybe there's a caching issue or something else at play? Everything you have above looks correct.

Try running hugo server --disableFastRender and see if that works. Otherwise, if you can add your config.toml file to your site's repo, I'll take a look at that and try reproducing the error again.

camachom commented 1 year ago

@lukeorth thanks for looking into it.

I did some further investigation, and it seems to be happening even on a completely new project. I started a new Hugo site from scratch and added the sample config: https://github.com/camachom/poison-test/tree/master

This leads me to believe something is wrong with my local or with a dependency. This is what I'm using:

camachom commented 1 year ago

I figured it out! I think the issue comes from having two config files. I had a config.toml from cloning poison in themes/poison and then a hugo.toml from making a new site in my root. Once I removed the theme's config file, everything worked as expected

Thank you 👍

lukeorth commented 12 months ago

Perfect! I'm glad to hear it's working now. 🙂