快轉到主要內容

Series

查看原始碼編輯此頁 (外部連結)
首次發表:

series.html (外部連結)

The Series feature groups multiple articles published across different dates or sections into a named sequence.

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:
  series: series

Front Matter Setup 此標題的連結

Set series to the series name and series_weight to control the article's position within the sequence.

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 (外部連結). If series_weight is not set, Hugo applies its default sort order (外部連結).

反向連結

文章關聯

無障礙設定