From 3f973065e8f32c3b702bdfc66c15c2c0ab6ea640 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Thu, 10 Aug 2023 10:40:31 +0200 Subject: [PATCH] Add working-on section --- layouts/partials/sections/working-on.html | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 layouts/partials/sections/working-on.html diff --git a/layouts/partials/sections/working-on.html b/layouts/partials/sections/working-on.html new file mode 100644 index 0000000..9aef640 --- /dev/null +++ b/layouts/partials/sections/working-on.html @@ -0,0 +1,39 @@ +{{ $sectionID := replace (lower .section.name) " " "-" }} +{{ if .section.id }} + {{ $sectionID = .section.id }} +{{ end }} + +{{ $numShow := 3}} +{{ if .section.numShow }} + {{ $numShow = .section.numShow }} +{{ end }} + +{{ $posts := .posts}} + +
+ {{ if not (.section.hideTitle) }} +

+ {{ .section.name }}

+ {{ else }} +

+ {{ .section.name }}

+ {{ end }} +
+
+ {{ range (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }} + {{if in $posts (.Title)}} + {{ partial "cards/recent-post.html" . }} + {{ end }} + {{ end }} +
+
+ {{ if (.section.showMoreButton) }} + + {{ end }} +