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) }} +
+ + {{ i18n "show_more"}} +
+ {{ end }} +