From ac8b097d82243a95d63c380c154eab0df1114e6a Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Tue, 14 Feb 2023 16:22:30 -0500 Subject: [PATCH] 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 ``` --- layouts/_default/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 62bbf0e..b10b781 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,6 +1,6 @@ {{ define "main" }} {{ if .Content }} -
+
{{ .Content }}
{{ end }}