Iterate posts from config file
This commit is contained in:
parent
cf2bfa570a
commit
c8cf35e9b5
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue