fix article titles and simplify listings - #23
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6c1d6dda9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| </header> | ||
|
|
||
| <section class="archive-content"> | ||
| <section class="archive-content" aria-label="文章归档"> |
There was a problem hiding this comment.
Restore a visible top-level heading
After removing the hero, /archive/ and all pages using the category layout no longer render an <h1>; the archive outline starts at its year <h2> elements and category pages start at article <h2> elements. This removes the visible page identity and the top-level landmark used by heading navigation, especially for users opening a listing directly, so retain a compact page heading when simplifying the decorative hero.
Useful? React with 👍 / 👎.
What changed
Root cause
GitHub Pages loads
jekyll-titles-from-headings, which populatedpage.titlefrom the first heading when front matter had no title. Many articles begin with# 前言, so their filenames were incorrectly replaced by前言in lists and article pages.Validation
titles_from_headingsgit diff --checkpasses