Skip to content

Commit 266918e

Browse files
authored
Merge pull request #2712 from canonical/json-ld
feat: add sitewide json-ld
2 parents 1085d5f + f49d67a commit 266918e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

templates/base_index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,34 @@
7474

7575
{% block extra_metatags %}{% endblock %}
7676

77+
<script type="application/ld+json" nonce="{{ csp_nonce }}">
78+
{
79+
"@context": "https://schema.org",
80+
"@type": "Organization",
81+
"@id": "https://canonical.com/#organization",
82+
"name": "Canonical",
83+
"url": "https://canonical.com/",
84+
"logo": {
85+
"@type": "ImageObject",
86+
"url": "https://assets.ubuntu.com/v1/756d9941-canonical-logo.png",
87+
"width": 364,
88+
"height": 384
89+
},
90+
"sameAs": [
91+
"https://x.com/canonical",
92+
"https://www.linkedin.com/company/canonical/",
93+
"https://github.com/canonical",
94+
"https://www.wikidata.org/wiki/Q39064"
95+
],
96+
"subOrganization": {
97+
"@type": "Organization",
98+
"@id": "https://ubuntu.com/#organization",
99+
"name": "Ubuntu",
100+
"url": "https://ubuntu.com/"
101+
}
102+
}
103+
</script>
104+
77105
<link rel="apple-touch-icon"
78106
sizes="180x180"
79107
href="https://assets.ubuntu.com/v1/f38b9c7e-COF%20apple-touch-icon.png" />

0 commit comments

Comments
 (0)