From c58e328fe786ceb8ef66e0890f1d962e14510e0e Mon Sep 17 00:00:00 2001 From: geekifan Date: Fri, 23 May 2025 11:47:19 +0800 Subject: [PATCH] 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. --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 0e6f84c..f09cef3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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 }}