快轉到主要內容

Stale Content Warning

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

stale-warning.html (外部連結)

The stale content warning shows an admonition on an article when it has not been updated within a configurable number of days. The partial reads lastmod in front matter, and falls back to date.

Configuration 此標題的連結

Set staleContentWarning to enable this feature, and set staleDays to control how many days may pass before an article is considered stale.

hugo.yaml
params:
  staleContentWarning: true
  staleDays: 365

The staleDays defaults to 365.

文章關聯

無障礙設定