From eed9914b21c76bfca0fbe5780b9e7535e71e468c Mon Sep 17 00:00:00 2001 From: fukunee Date: Thu, 29 Oct 2026 15:21:36 +0800 Subject: [PATCH] Unlist AI productivity article from all listings --- content/blog/ai-productivity-observation.md | 4 +++- layouts/hextra-home.html | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/content/blog/ai-productivity-observation.md b/content/blog/ai-productivity-observation.md index f838a92..b02673f 100644 --- a/content/blog/ai-productivity-observation.md +++ b/content/blog/ai-productivity-observation.md @@ -2,7 +2,9 @@ title: "AI 生产力现状" date: 2026-02-27T18:10:00+08:00 draft: false -hideFromHome: true +# 不进任何列表(首页、/blog 列表、侧边栏、RSS、sitemap、搜索索引),但保留文章 URL +_build: + list: never 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 fa02be7..c21465a 100644 --- a/layouts/hextra-home.html +++ b/layouts/hextra-home.html @@ -10,10 +10,7 @@ {{ .Content }} - {{- $pages := where .Site.RegularPages "Section" "blog" }} {{- /* - 首页隐藏:front matter 里写 hideFromHome: true 的文章不会出现在首页列表 - (仍然保留在 /blog 列表、RSS 和文章本身的 URL 上) */}} {{- $pages = - where $pages "Params.hideFromHome" "!=" true }} {{- $pages = + {{- $pages := where .Site.RegularPages "Section" "blog" }} {{- $pages = $pages.ByDate.Reverse }} {{- $batch := 6 }}