diff options
author | tdro <tdro@noreply.example.com> | 2023-02-22 21:47:57 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-02-22 21:47:57 -0500 |
commit | f33d7108a178ddbc5838b329f87936c465b308bb (patch) | |
tree | d3a5c8a5ea9c2cdfd5a8f1a5915ce00261c28dc7 /themes | |
parent | 9f8738249627488e790dc251ac18ef2315c3335a (diff) | |
download | canory-f33d7108a178ddbc5838b329f87936c465b308bb.tar.gz canory-f33d7108a178ddbc5838b329f87936c465b308bb.tar.bz2 canory-f33d7108a178ddbc5838b329f87936c465b308bb.zip |
themes/default/layouts/_default: Add XML base
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/_default/baseof.xml | 8 | ||||
-rw-r--r-- | themes/default/layouts/_default/rss.xml | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/baseof.xml b/themes/default/layouts/_default/baseof.xml new file mode 100644 index 0000000..f804253 --- /dev/null +++ b/themes/default/layouts/_default/baseof.xml @@ -0,0 +1,8 @@ +{{- $modified := partial "function-page-modified.html" . -}} + +{{- block "main" . -}} +{{- printf `<?xml version="1.0" encoding="utf-8" standalone="yes"?>` | safeHTML -}} +<root> +Silence is golden. +</root> +{{- end -}} diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml index 9ff05d5..fb11d98 100644 --- a/themes/default/layouts/_default/rss.xml +++ b/themes/default/layouts/_default/rss.xml @@ -1,3 +1,5 @@ +{{- define "main" -}} + {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if lt $limit 1 -}} @@ -117,3 +119,5 @@ {{ end -}} </channel> </rss> + +{{- end -}} |