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/single.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 themes/fredo/layouts/single.html (limited to 'themes/fredo/layouts/single.html') diff --git a/themes/fredo/layouts/single.html b/themes/fredo/layouts/single.html new file mode 100644 index 0000000..11efc31 --- /dev/null +++ b/themes/fredo/layouts/single.html @@ -0,0 +1,30 @@ +{{ define "main" }} +
+ {{ if eq .Type "posts" }} + + {{ end }} + {{ if .Param "Image" }} + {{ $imagename := .Param "image" }} + {{ $myimg := resources.Get $imagename }} + {{ if $myimg }} + {{ $myimg := $myimg.Resize "1024x" }} +
+ + + {{ .Title }} + + +
+ {{ else }} + {{ errorf "Can not find image: %s" $imagename }} + {{ end }} + {{ end }} + + +

{{ .Title }}

+ {{ .Content }} +
+ +{{ end }} \ No newline at end of file -- cgit v1.2.3