site.Params vs .Site.Params

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:

  1. git clone
  2. cd vanilla-bootstrap-hugo-theme/exampleSite
  3. hugo server --themesDir ../.. -v
  4. Peek at http://localhost:1313/ and confirm the footer is visible
  5. Open file layouts/partials/footer.html and change .Site.Params.footerText to site.Params.footerText
  6. 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.

I can confirm the behavior on Fedora 28.

hugo env
Hugo Static Site Generator v0.53-8FC339DC2529FF77E494A1C12CD1FF9FBCB880A4 linux/amd64 BuildDate: 2018-12-24T08:26:10Z

It’s a known issue :slight_smile:

Good to know :slightly_smiling_face: