Hide AI productivity article from homepage

This commit is contained in:
2026-10-29 15:20:42 +08:00
parent 9ee5969f98
commit 0e31179cfe
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -10,7 +10,10 @@
{{ .Content }}
</div>
{{- $pages := where .Site.RegularPages "Section" "blog" }} {{- $pages =
{{- $pages := where .Site.RegularPages "Section" "blog" }} {{- /*
首页隐藏:front matter 里写 hideFromHome: true 的文章不会出现在首页列表
(仍然保留在 /blog 列表、RSS 和文章本身的 URL 上) */}} {{- $pages =
where $pages "Params.hideFromHome" "!=" true }} {{- $pages =
$pages.ByDate.Reverse }} {{- $batch := 6 }}
<div class="hx:mt-16" id="post-list">