From 81618e8bb6f00b3b74c30c1cc75a782cf266efd6 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 14 Nov 2023 17:14:20 -0500 Subject: initial commit --- themes/cranky/layouts/shortcodes/img.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 themes/cranky/layouts/shortcodes/img.html (limited to 'themes/cranky/layouts/shortcodes/img.html') diff --git a/themes/cranky/layouts/shortcodes/img.html b/themes/cranky/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff7959b --- /dev/null +++ b/themes/cranky/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ + +
+ {{- with .Get "link"}}{{ end -}} + {{.}} + {{- if .Get "link"}}{{ end -}} + {{- with .Get "caption" -}} +
+ {{- . -}} +
+ {{- end -}} +
-- cgit v1.2.3