I recently tried refactoring my theme to use Hugo v0.53
's global site
var, but had to revert after some issues.
Here’s some quick steps to reproduce:
git clone https://github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git
cd vanilla-bootstrap-hugo-theme/exampleSite
hugo server --themesDir ../.. -v
- Peek at
http://localhost:1313/
and confirm the footer is visible - Open file
layouts/partials/footer.html
and change.Site.Params.footerText
tosite.Params.footerText
- Open browser again and notice the footer is no longer displayed
Wondering if you guys can spot what’s going on here. Thanks in advance for any help.
Note: I ran local server with the -v
flag but didn’t see any relevant debug output.