nuxt-x-affiliate
Last Updated
Updated {date}
Last Updated
The XAFLastUpdated component renders a small freshness badge for the article — important for trust signals and Google's "freshness" boost on YMYL queries. Two variants: pill (rounded badge) and inline (plain text).
Components
<XAFLastUpdated />
<XAFLastUpdated date="2026-02-15" />
<XAFLastUpdated date="2026-02-15" original-date="2026-01-10" />
<XAFLastUpdated date="2026-02-15" variant="inline" locale="en-GB" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
date | string | required | ISO date string. |
originalDate | string | — | Original publish date. Only shown if it differs from date. |
label | string | "Updated" | Label prefix. |
locale | string | "en-US" | Locale for date formatting. |
variant | 'pill' | 'inline' | 'pill' | Visual variant. |
When originalDate is provided and differs from date, the badge shows Updated {date} · originally {originalDate}.
AI Context
component: XAFLastUpdated
package: "@xenterprises/nuxt-x-affiliate"
use-when: "Updated {date}" freshness badge with optional original-date suffix for trust signals.
