Machine readable metadata example
Person schema
How it looks
(preview)
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://www.gov.uk/foo"
},
"name": "A. Person",
"description": null
}
</script>
<link rel="canonical" href="https://www.gov.uk/foo" />
<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.gov.uk/foo" />
<meta property="og:title" content="A. Person" />
<meta property="og:description" content="" />
<meta name="twitter:card" content="summary" />
How to call this example
<%= render "govuk_publishing_components/components/machine_readable_metadata", {
content_item: {
title: "A. Person",
base_path: "/foo",
details: {}
},
schema: "person"
} %>