Series
首次發表:
The Series feature enables the logical grouping of multiple articles published across different dates or sections. A Series is implemented as a taxonomy, which is why the front matter variable is defined as a list of strings.
Configuration
Ensure the series taxonomy is explicitly defined in your project configuration:
hugo.yaml
taxonomies:
tag: tags
series: seriesFront Matter Setup
Define the series name and the display order within the article's front matter. Use the series_weight key to control the sequence of articles within a specific series according to Hugo's taxonomic weight rules.
content/posts/example-article.md
---
title: "Example Article"
series: ["Documentation"]
series_weight: 10
---Sorting Logic
Articles within a series are sorted by their taxonomic weight. To specify the order, define the series_weight key in the front matter; otherwise, Hugo applies its default sort order.