{{- /* Content expiration reminder partial. Displays a note or warning admonition when the page's last modification date exceeds configurable day thresholds (default: 90 days for note, 180 days for warning). Skipped for password-protected pages. */ -}} {{- $expirationReminder := dict "Page" . "Key" "expiration_reminder" | partial "function/param.html" | default dict -}} {{- if $expirationReminder.enable | and (not .Params.password) -}} {{- $daysAgo := div (sub now.Unix .Lastmod.Unix) 86400 }} {{- $reminderThreshold := $expirationReminder.reminder | default 90 }} {{- $warningThreshold := $expirationReminder.warning | default 180 }} {{- $updateTime := .Lastmod }} {{- if gt $daysAgo $reminderThreshold -}} {{- $type := "note" -}} {{- $icon := "fa-pencil-alt" -}} {{- if gt $daysAgo $warningThreshold -}} {{- $type = "warning" -}} {{- $icon = "fa-exclamation-triangle" -}} {{- end -}}