diff options
author | tdro <tdro@noreply.example.com> | 2023-05-10 21:22:53 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-05-18 11:12:18 -0400 |
commit | 5403d7559af83c4ecdfbd89036984a114490eb93 (patch) | |
tree | 9a2d1c981aad56675a848f43215e8e967bdabef1 /themes | |
parent | 019f938f2394adca667b11a7640377053547b70e (diff) | |
download | canory-5403d7559af83c4ecdfbd89036984a114490eb93.tar.gz canory-5403d7559af83c4ecdfbd89036984a114490eb93.tar.bz2 canory-5403d7559af83c4ecdfbd89036984a114490eb93.zip |
themes/default/layouts/partials/function-page-modified: Return true here
Wrap bases but still generate everything, will revisit much later on
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/baseof.json | 6 | ||||
-rw-r--r-- | themes/default/layouts/_default/baseof.txt | 6 | ||||
-rw-r--r-- | themes/default/layouts/_default/baseof.xml | 8 | ||||
-rw-r--r-- | themes/default/layouts/partials/function-page-modified.html | 2 |
5 files changed, 15 insertions, 9 deletions
diff --git a/themes/default/layouts/_default/baseof.html b/themes/default/layouts/_default/baseof.html index ddd2780..657dc7d 100644 --- a/themes/default/layouts/_default/baseof.html +++ b/themes/default/layouts/_default/baseof.html @@ -1,5 +1,6 @@ {{- $modified := partial "function-page-modified.html" . -}} +{{- if $modified -}} <!DOCTYPE html> <html lang="en-us" @@ -42,3 +43,4 @@ </column-right> </body> </html> +{{- end -}} diff --git a/themes/default/layouts/_default/baseof.json b/themes/default/layouts/_default/baseof.json index b2d7a9f..8a60b00 100644 --- a/themes/default/layouts/_default/baseof.json +++ b/themes/default/layouts/_default/baseof.json @@ -1,5 +1,7 @@ {{- $modified := partial "function-page-modified.html" . -}} -{{- block "main" . -}} -"Silence is golden." +{{- if $modified -}} + {{- block "main" . -}} + "Silence is golden." + {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/baseof.txt b/themes/default/layouts/_default/baseof.txt index 55f860c..f122113 100644 --- a/themes/default/layouts/_default/baseof.txt +++ b/themes/default/layouts/_default/baseof.txt @@ -1,5 +1,7 @@ {{- $modified := partial "function-page-modified.html" . -}} -{{- block "main" . -}} -Silence is golden. +{{- if $modified -}} + {{- block "main" . -}} + Silence is golden. + {{- end -}} {{- end -}} diff --git a/themes/default/layouts/_default/baseof.xml b/themes/default/layouts/_default/baseof.xml index f804253..f9f85d8 100644 --- a/themes/default/layouts/_default/baseof.xml +++ b/themes/default/layouts/_default/baseof.xml @@ -1,8 +1,8 @@ {{- $modified := partial "function-page-modified.html" . -}} +{{- if $modified -}} {{- block "main" . -}} -{{- printf `<?xml version="1.0" encoding="utf-8" standalone="yes"?>` | safeHTML -}} -<root> -Silence is golden. -</root> +{{- printf `<?xml version="1.0" encoding="utf-8" standalone="yes"?>%s` "\n" | safeHTML -}} +<root>Silence is golden.</root> +{{- end -}} {{- end -}} diff --git a/themes/default/layouts/partials/function-page-modified.html b/themes/default/layouts/partials/function-page-modified.html index 0b53acb..b99d7c0 100644 --- a/themes/default/layouts/partials/function-page-modified.html +++ b/themes/default/layouts/partials/function-page-modified.html @@ -28,4 +28,4 @@ ) $pageContext.Page.Kind) -}} -{{- return $output -}} +{{- return true -}} |