Fix reference to "framed" parameter

Previously, `layouts/_default/index.html` was referencing `.Params.framed`,
which looks for the `framed` parameter in the local document metadata,
rather than in the site configuration.

This commit replaces it with `$.Site.Params.framed`, allowing you to frame
the index content by setting in `config.toml`:

```
[params]
framed = true
```
This commit is contained in:
Lars Kellogg-Stedman 2023-02-14 16:22:30 -05:00
parent 2b14b3d4e5
commit ac8b097d82
No known key found for this signature in database
GPG Key ID: 042DF6CF74E4B84C

View File

@ -1,6 +1,6 @@
{{ define "main" }}
{{ if .Content }}
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}">
<div class="index-content {{ if $.Site.Params.framed -}}framed{{- end -}}">
{{ .Content }}
</div>
{{ end }}