From 6e038781e06adbf623d43b82a312e90f402496be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Wed, 8 Feb 2023 13:18:17 +0100 Subject: feat: article for 2023-02-08 and centered imagem shortcde. --- layouts/shortcodes/img-center.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/shortcodes/img-center.html (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/img-center.html b/layouts/shortcodes/img-center.html new file mode 100644 index 0000000..398cccc --- /dev/null +++ b/layouts/shortcodes/img-center.html @@ -0,0 +1,16 @@ +{{- $file := .Get 0 }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $caption := .Get 1 }} +{{- $source := .Get 2 }} +{{- $img = $img.Resize "500x" }} +
+ {{ $caption }} +
+ {{ $caption }} + + {{- if $source }} + [source] + {{ end }} +
+
-- cgit v1.2.3