Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing navbar items when testing included example site #36

Closed
rpodcast opened this issue Jan 23, 2017 · 4 comments
Closed

Missing navbar items when testing included example site #36

rpodcast opened this issue Jan 23, 2017 · 4 comments
Assignees

Comments

@rpodcast
Copy link
Contributor

Hello, first I'm a fan of Arrested Devops and thank you for creating this theme! I'm a fellow podcaster and currently I'm using the Nikola static-site generator but would like to migrate over to Hugo due to a variety of reasons. You can see my podcast page at r-podcast.org. I installed Hugo on both my laptop (running arch linux via the snap hugo package) as well as on a digital ocean VPS running ubuntu 16.04, and to test out your theme I created a new site, downloaded castanet within the theme subdirectory like usual, and copied over the contents of the exampleSite directory to the test site. The only part I changed was the baseUrl directive in config.toml. When I serve the site locally using hugo server and view the site at localhost:1313, I see most of the site renders exactly as your example at http://sample-castanet.netlify.com/ but my version is totally missing the About, Contacts, and Resources items in the navigation bar (see screenshot below). I'm new to Hugo so it's quite possible I'm missing a step or two, but can you help me to at least render your example site exactly as yours renders? I don't feel comfortable making the tweaks to the site for matching my podcast until I can at least start from a working state! Let me know if you would like additional information.

hugo_local

@mattstratton
Copy link
Owner

I suspect this is something that broke in the later hugo; even given the code and config that is on the sample site, when I build it locally, the menus disappear. I'm going to see if I can puzzle this out.

@rpodcast
Copy link
Contributor Author

Thanks for looking in to this! Happy to help test further or provide additional info if needed.

@rpodcast
Copy link
Contributor Author

rpodcast commented Feb 4, 2017

Just a quick check on any updates? FWIW I experimented with compiling your arresteddevops site files locally and the navbar elements appeared without a problem. But it looks like you use a more custom theme for it.

@rpodcast
Copy link
Contributor Author

rpodcast commented Feb 6, 2017

After consulting the Hugo template debugging docs combined with a reported URL issue I believe I've found the solution. It turns out that you need to specify .Site.Menus.main as opposed to .Site.Menus.Main within the layouts/partials/header.html file. After making that small change I can now see the correct menu items! I'll submit a PR shortly.

rpodcast added a commit to rpodcast/castanet that referenced this issue Feb 6, 2017
rpodcast added a commit to rpodcast/castanet that referenced this issue Feb 6, 2017
fix case in site menus main call to fix mattstratton#36
@ghost ghost assigned mattstratton Feb 11, 2017
@ghost ghost added the in progress label Feb 11, 2017
@ghost ghost removed the in progress label Feb 11, 2017
@mattstratton mattstratton modified the milestone: v.1.0 May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants