Archive
Series: Documentation
- 1. Introduction
- 2. Getting Started
- 3. Color Schemes
- 4. Directory Structure and Assets
- 5. Feature Images
- 6. Favicon
- 7. Series
- 8. Archive
- 9. Search
- 10. Backlinks
- 11. Related Article
- 12. Rich Content
- 13. Markdown and Hugo
- 14. Customization
- 15. Reference - Configuration
- 16. Reference - Front matter
- 17. Reference - Icons
Yore provides a dedicated archive feature to aggregate all posts into a single chronological list.
Basic Setup
To enable the archive page, create an _index.md file in content/archive/. Note the file must be named _index.md, using index.md will prevent Hugo from treating it as a list page.
To exclude a page from the archive, add pageNoList to its front matter.
pageNoList also excludes the article from search results but not from the sitemap.
Yore uses Hugo's built-in sitemap, you would need to customize it to exclude the page. See official documentation.
Options
Customizing the URL
To modify the archive's access path, define the
urlparameter in the front matter ofcontent/archive/_index.md:--- title: "Post Archive" url: "/all-posts" ---Global List Scope
You can transform any list page into an archive by utilizing the
listScopeparameter. SettinglistScopetositeinstructs the template to fetch all regular pages from the entire site.--- title: "Full Site Archive" params: listScope: "site" ---InfoKeys inside the
paramsfield are not Hugo config but theme config.
Series: Documentation
- 1. Introduction
- 2. Getting Started
- 3. Color Schemes
- 4. Directory Structure and Assets
- 5. Feature Images
- 6. Favicon
- 7. Series
- 8. Archive
- 9. Search
- 10. Backlinks
- 11. Related Article
- 12. Rich Content
- 13. Markdown and Hugo
- 14. Customization
- 15. Reference - Configuration
- 16. Reference - Front matter
- 17. Reference - Icons