mattstratton/castanet

[BUG] - Remove blog from jumbotron when not in use

lnxchk opened this issue · 3 comments

Describe the bug
We aren't going to use the blog feature, but there's no way in the config to not have "Blog" show up in the jumbotron div.

To Reproduce
Steps to reproduce the behavior:

  1. Working on upgrading Page it to the Limit site to 1.14.1
  2. Added no additional settings to config.toml for the blog feature
  3. Blog shows up in jumbotron and results in a 404

Expected behavior

If the blog section isn't initialized in config.toml, there should be no mention of a blog on the site.

Screenshots
Screen Shot 2021-02-16 at 6 20 28 PM

Desktop (please complete the following information):

  • OS: OS X
  • Browser: chrome and firefox
  • Hugo version v0.74.3

Additional context
I copied some code out of head_includes.html to suppress the blog button, and that seems to work. I don't know if that is the best way to do it though.

I added
{{ if eq .Section "blog" }}
at line 75 and an end at line 81

oh snap. This should be fixed soon. Sorry!

I am pushing up a PR now to fix this; had to do something a little different but I think it works!

There'll be a fix released in the next 10 min or so!