From 474b8f177078cfdc2d4342e9ead4d505afa02d62 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Apr 2026 08:41:54 +0200 Subject: layout: add home, section, and page templates --- layouts/section.html | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'layouts/section.html') diff --git a/layouts/section.html b/layouts/section.html index 748f2f5..4de7628 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -1,10 +1,29 @@ {{ define "main" }} -

{{ .Title }}

- {{ .Content }} - {{ range .Pages }} -
-

{{ .LinkTitle }}

- {{ .Summary }} -
+
+

{{ .Title }}

+ + {{ if eq .Type "articles" }} +
+ + + + + + +
+ +
+ {{ range .Pages.ByDate.Reverse }} + {{ $data := dict "title" .Title "type" .Params.type "description" .Summary "date" .Date "url" .RelPermalink "image" .Params.image "featured" false }} + {{ partial "post-card.html" $data }} + {{ end }} +
+ {{ else }} + {{ .Content }} + {{ end }} +
+ + {{ if eq .Type "articles" }} + {{ end }} {{ end }} -- cgit v1.2.3