diff --git a/content/blog/ai-productivity-observation.md b/content/blog/ai-productivity-observation.md index 5c89f32..f838a92 100644 --- a/content/blog/ai-productivity-observation.md +++ b/content/blog/ai-productivity-observation.md @@ -2,6 +2,7 @@ title: "AI 生产力现状" date: 2026-02-27T18:10:00+08:00 draft: false +hideFromHome: true poet: | We are stuck with technology when what we really want is just stuff that works. — Douglas Adams, UK, 1952–2001 diff --git a/layouts/hextra-home.html b/layouts/hextra-home.html index c21465a..fa02be7 100644 --- a/layouts/hextra-home.html +++ b/layouts/hextra-home.html @@ -10,7 +10,10 @@ {{ .Content }} - {{- $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 }}