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

[dev 18] .Site.Params in partials not writing to page #2668

Closed
rdwatters opened this issue Nov 4, 2016 · 2 comments
Closed

[dev 18] .Site.Params in partials not writing to page #2668

rdwatters opened this issue Nov 4, 2016 · 2 comments
Labels

Comments

@rdwatters
Copy link
Contributor

Ran go get to use the dev build. .Site.Params values that worked in 17 are no longer showing up when running the local server.

For example, in my config.toml, I have:

[params]
  CopyrightLine = "College of American Pathologists"

And then in partials/footer.html, I use the following:

<ul class="copyright">
      <li><small>© {{ .Site.LastChange.Format "2006"}}</small></li>
      {{ with .Site.Params.CopyrightLine }}<li>{{.}}</li>{{end}}
</ul>

The second <li> no longer writes to the page. Same if I use if or just <li>{{.Site.Params.CopyrightLine}}</li>.

@bep, it's in a private repo for work, but I'll add you as a collaborator in the event you want to test this locally....

@bep
Copy link
Member

bep commented Nov 4, 2016

See #2630

@bep bep closed this as completed Nov 4, 2016
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants