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:
geekifan
2025-05-23 11:47:19 +08:00
committed by Yifan
parent 37bb9cb449
commit c58e328fe7

View File

@ -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 }}