Iterate posts from config file

This commit is contained in:
BernatBC 2023-08-11 12:20:07 +02:00
parent cf2bfa570a
commit c8cf35e9b5

View file

@ -20,8 +20,8 @@
{{ end }}
<div class="container">
<div class="row" id="recent-post-cards">
{{ range (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }}
{{if in $posts (.Title)}}
{{ range $post := .posts}}
{{ with site.GetPage $post }}
{{ partial "cards/recent-post.html" . }}
{{ end }}
{{ end }}