From 754390a34e6891dd9471fb78c01f7714816cd044 Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 16 Mar 2026 00:03:41 +0800 Subject: feat(shortcode): float-image --- layouts/_shortcodes/float-image.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 layouts/_shortcodes/float-image.html (limited to 'layouts/_shortcodes/float-image.html') diff --git a/layouts/_shortcodes/float-image.html b/layouts/_shortcodes/float-image.html new file mode 100644 index 00000000..2c03992d --- /dev/null +++ b/layouts/_shortcodes/float-image.html @@ -0,0 +1,13 @@ +{{ $src := .Get 0 }} + +{{ $float := .Get 1 }} +{{ $padding := "" }} +{{ if eq $float "left" }} + {{ $padding = "pr-4 sm:pr-6 md:pr-8" }} +{{ else }} + {{ $padding = "pl-4 sm:pl-6 md:pr-8" }} +{{ end }} + +
+ +
-- cgit v1.2.3