With content history tags
The tags in this object will generate the content-has-history
tag, set to true. This tag is triggered when either, within content_item
:
public_updated_at
andfirst_public_at
withindetails
are both present and they aren’t the same valuechange_history
withindetails
is present and it has a value of more than 1
See below example for specific details.
How it looks (preview)
<meta name="govuk:content-has-history" content="true">
<meta name="govuk:public-updated-at" content="2021-01-15T12:30:45.000+00:00">
How to call this example
<%= render "govuk_publishing_components/components/meta_tags", {
content_item: {
public_updated_at: "2021-01-15T12:30:45.000+00:00",
details: {
first_public_at: "2020-11-03T09:15:00.000+00:00",
change_history: "5"
}
}
} %>