Skip to content

Commit c0e8dec

Browse files
add organisation schema to homepage
1 parent aeb4dd2 commit c0e8dec

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tbx/project_styleguide/templates/patterns/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
{% block meta_tags %}{% endblock %}
3131

32+
{% block extra_jsonld %}{% endblock %}
33+
3234
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
3335

3436
{# Add syntax highlighting for gists if a gist exists within a raw html streamfield #}

tbx/project_styleguide/templates/patterns/pages/home/home_page.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{% extends "patterns/base_page.html" %}
22
{% load wagtailcore_tags wagtailimages_tags navigation_tags static %}
33

4+
{% block extra_jsonld %}
5+
<script type="application/ld+json">
6+
{
7+
"@context": "https://schema.org",
8+
"@type": "Organization",
9+
"name": "Torchbox",
10+
"url": "https://torchbox.com/",
11+
"logo": "https://torchbox.com/apple-touch-icon.png",
12+
"sameAs": [
13+
"https://bsky.app/profile/torchbox.com",
14+
"https://www.linkedin.com/company/torchbox",
15+
"https://www.instagram.com/torchboxltd/"
16+
]
17+
}
18+
</script>
19+
{% endblock extra_jsonld %}
20+
421
{% block content %}
522

623
<div class="swirls">

0 commit comments

Comments
 (0)