{# Stale Content Warning Banner Displays a warning when documentation hasn't been updated in a while. Uses the `is outdated` template test for clean conditional logic. Configuration: - Default threshold: 180 days (6 months) - Can be disabled per-page: stale_warning: false in frontmatter - Site-wide setting: theme.stale_warning_days in bengal.toml Usage: {% include 'partials/stale-content-banner.html' %} #} {% set stale_days = theme.config.stale_warning_days ?? 180 %} {% set show_warning = params.stale_warning ?? true %} {% if show_warning and page is outdated(stale_days) %} {% end %}