From e4a8a804aa5353bcaa4403da291e02bd9fcd22db Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sat, 14 Jun 2025 13:48:40 +0200 Subject: initial version --- themes/fredo/layouts/_partials/post-short.html | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 themes/fredo/layouts/_partials/post-short.html (limited to 'themes/fredo/layouts/_partials/post-short.html') diff --git a/themes/fredo/layouts/_partials/post-short.html b/themes/fredo/layouts/_partials/post-short.html new file mode 100644 index 0000000..808297d --- /dev/null +++ b/themes/fredo/layouts/_partials/post-short.html @@ -0,0 +1,40 @@ +
+
+ {{ if .Param "image" }} + {{ $imagename := .Param "image" }} + {{ $myimg := resources.Get $imagename }} + {{ if $myimg }} + {{ $myimg := $myimg.Resize "512x" }} + + + + {{ .Title }} + + + {{ else }} + {{ errorf "Can not find image: %s" $imagename }} + {{ end }} + {{ end }} +
+
+ +
+

+ {{ .Title }} +

+
+
+

{{ .Param "summary" }}

+
+
+
-- cgit v1.2.3