feat: archives page (#922)

* feat: archives page

* fix: empty archive show 'no posts found' message
* Add ToC partials for structural consistency
* Fix empty archive showing blank page

* fix: rename archive to archives

* chore: enhance archives and additional pages support

- Updated the menu structure in hugo.yaml to include new sections for 'About', 'Archives', and 'Glossary' under 'More'.
- Added new archive index files for multiple languages (Farsi, Japanese, Simplified Chinese) to support multilingual content.
- Created additional pages documentation for glossary and archives in multiple languages.
- Updated references in existing documentation to point to the new additional pages structure.
- Improved the archives layout to display a user-friendly message when no posts are found.

* fix: update date format in archives layout

- Changed the date format in the archives layout from a partial to a direct format for improved readability, displaying dates as "Jan 02".

* feat: add archive date format customization

- Introduced a new parameter in hugo.yaml for customizing the date format of archive items, defaulting to "Jan 02".
- Updated documentation in multiple languages to reflect the new optional date format feature for archives.

---------

Co-authored-by: Xin <xin@imfing.com>
This commit is contained in:
Tyler
2026-02-08 19:45:29 +08:00
committed by GitHub
parent 2d5adf0e40
commit 04803c4071
27 changed files with 328 additions and 44 deletions

View File

@@ -102,19 +102,18 @@ menu:
weight: 1
- identifier: versions
name: Versions
weight: 2
weight: 5
- identifier: blog
name: Blog
pageRef: /blog
weight: 3
- identifier: about
name: About
pageRef: /about
weight: 2
- identifier: more
name: More
weight: 4
- identifier: showcase
name: Showcase
pageRef: /showcase
weight: 5
weight: 3
params:
type: link
icon: collection
@@ -142,6 +141,21 @@ menu:
name: v0.9 ↗
url: https://imfing.github.io/hextra/versions/v0.9/
parent: versions
- identifier: about
name: About
pageRef: /about
parent: more
weight: 1
- identifier: archives
name: Archives
pageRef: /archives
parent: more
weight: 2
- identifier: glossary
name: Glossary
pageRef: /glossary
parent: more
weight: 3
sidebar:
- identifier: more
@@ -226,6 +240,12 @@ params:
article:
displayPagination: true
archives:
# Source section used for the archives page.
section: blog
# Date format for archive list items.
dateFormat: "Jan 02"
toc:
displayTags: true