fix(layout): update post filtering to use correct type
Changed the filtering criteria for posts in the layout from "Section" to "Type" to ensure accurate post retrieval.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
{{ $all_posts := where .Site.RegularPages "Section" "post" }}
|
||||
{{ $all_posts := where .Site.RegularPages "Type" "post" }}
|
||||
{{ $all_pinned := where $all_posts "Params.pin" true }}
|
||||
{{ $all_normal := where $all_posts "Params.pin" "!=" true }}
|
||||
|
||||
|
Reference in New Issue
Block a user