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:
parent
2b14b3d4e5
commit
ac8b097d82
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user