aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-19 18:12:13 -0400
committertdro <tdro@noreply.example.com>2023-03-19 18:25:12 -0400
commit1e2331b1da5cbf4db5c74d4cf6c6e5386728305d (patch)
tree034d896f845d4bb705fd0f256732d06e79701d27
parent6567a5742dfa0a16d99192547fb7478d2db7ace8 (diff)
downloadcanory-1e2331b1da5cbf4db5c74d4cf6c6e5386728305d.tar.gz
canory-1e2331b1da5cbf4db5c74d4cf6c6e5386728305d.tar.bz2
canory-1e2331b1da5cbf4db5c74d4cf6c6e5386728305d.zip
themes/default/layouts/shortcodes: Add animate.rss.xml
Feed readers may strip style tags
-rw-r--r--themes/default/layouts/shortcodes/animate.rss.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/animate.rss.xml b/themes/default/layouts/shortcodes/animate.rss.xml
new file mode 100644
index 0000000..c1f04b8
--- /dev/null
+++ b/themes/default/layouts/shortcodes/animate.rss.xml
@@ -0,0 +1,5 @@
+{{- $type := default "default" (.Get "type" | default (.Get 0)) -}}
+{{- $text := default "animate" (.Get "text" | default (.Get 1)) -}}
+
+<a title="{{ $type }} animation" href="{{ .Page.Permalink }}">{{ $text }}</a>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}