From a73e8feed622e912e085a0931b2268c7a51f56b1 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 9 Dec 2022 19:23:47 -0500 Subject: themes/default/layouts/shortcodes/animate: Add animate --- themes/default/layouts/shortcodes/animate.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 themes/default/layouts/shortcodes/animate.html (limited to 'themes') diff --git a/themes/default/layouts/shortcodes/animate.html b/themes/default/layouts/shortcodes/animate.html new file mode 100644 index 0000000..15b0fbc --- /dev/null +++ b/themes/default/layouts/shortcodes/animate.html @@ -0,0 +1,11 @@ +{{- $type := default "default" (.Get "type" | default (.Get 0)) -}} +{{- $text := default "animate" (.Get "text" | default (.Get 1)) -}} + +{{- $letters := split ($text | markdownify) "" -}} + + +{{- range $value, $letter := $letters -}} + {{ $letter }} +{{- end -}} + +{{- /* This comment removes trailing newlines and white spaces. */ -}} -- cgit v1.2.3