From 3cb68b6d5231ac9932b521dee767aae19ae1ca60 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 14 Jul 2025 19:05:44 +0800 Subject: refactor: keep layouts folder structure up to standards Former-commit-id: 44c7def3f6958550ccf965971f1819c1d6c514f1 --- layouts/_markup/render-image.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/_markup/render-image.html (limited to 'layouts/_markup/render-image.html') diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html new file mode 100644 index 00000000..21e574af --- /dev/null +++ b/layouts/_markup/render-image.html @@ -0,0 +1,16 @@ +{{- $src := .Destination -}} +{{- $alt := .Text | default "" -}} +{{- $caption := .Title | default "" -}} + +
+ {{ $alt }} + {{- if $caption }} +
+

{{ $caption | markdownify }}

+
+ {{- end }} +
+
-- cgit v1.2.3