# Stale Content Warning

{{< badge
  text="stale-warning.html"
  url="https://github.com/ZhenShuo2021/hugo-yore/blob/main/layouts/_partials/components/stale-warning.html"
  variant="muted"
  appearance="accent"
  pill=true
>}}

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.

```yaml {title="hugo.yaml"}
params:
  staleContentWarning: true
  staleDays: 365
```

The `staleDays` defaults to `365`.




## Ancestors of This Page (Auto Generated)



- https://yore.zsl0621.cc/zh-tw/docs/features/index.md

- https://yore.zsl0621.cc/zh-tw/docs/index.md
