From 6c1d6dda9fcc0977ce8c7931857f39ecab0f3702 Mon Sep 17 00:00:00 2001 From: Yano <15822882820@163.com> Date: Sun, 16 Aug 2026 19:25:55 +0800 Subject: [PATCH] fix article titles and simplify listings --- _config.yml | 5 +++++ _layouts/category.html | 10 ---------- archive.html | 12 +----------- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/_config.yml b/_config.yml index 7828155..73c761d 100644 --- a/_config.yml +++ b/_config.yml @@ -26,6 +26,11 @@ relative_links: enabled: true collections: true +# Keep article titles stable: use explicit front matter titles when present, +# otherwise let the layouts fall back to the Markdown filename. +titles_from_headings: + enabled: false + defaults: - scope: path: "AI" diff --git a/_layouts/category.html b/_layouts/category.html index 31b7c70..30071ca 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -4,16 +4,6 @@ {% assign dated_articles = site.pages | where_exp: 'item', 'item.date != nil' %} {% assign articles = dated_articles | where_exp: 'item', 'item.path contains page.category_path' | sort: 'date' | reverse %}
-
- ← 返回首页 -

{{ page.kicker }}

-
-

{{ page.title }}

- {{ articles.size }} -
-

{{ page.description }}

-
-