Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tbx/project_styleguide/templates/patterns/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

{% block meta_tags %}{% endblock %}

{% include "patterns/navigation/components/breadcrumbs-jsonld.html" %}

{% block extra_jsonld %}{% endblock %}

<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">

{# Add syntax highlighting for gists if a gist exists within a raw html streamfield #}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% load wagtailcore_tags %}
{% wagtail_site as current_site %}
{% if page.breadcrumbs %}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "BreadcrumbList",
"itemListElement": [{% for crumb in page.breadcrumbs %}
{
"@type": "ListItem",
"position": {{ forloop.counter }},
"name": "{% if crumb.depth == 2 %}Home{% else %}{{ crumb.title|escapejs }}{% endif %}",
"item": "{{ current_site.root_url }}{% pageurl crumb %}"
}{% if not forloop.last %},{% endif %}{% endfor %}
]
}
</script>
{% endif %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
{% extends "patterns/base_page.html" %}
{% load wagtailcore_tags wagtailimages_tags navigation_tags static %}

{% block extra_jsonld %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Torchbox",
"url": "https://torchbox.com/",
"logo": "https://torchbox.com/apple-touch-icon.png",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what to go with here actually

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switched in f5b769c

"sameAs": [
"https://bsky.app/profile/torchbox.com",
"https://www.linkedin.com/company/torchbox",
"https://www.instagram.com/torchboxltd/"
]
}
</script>
{% endblock extra_jsonld %}

{% block content %}

<div class="swirls">
Expand Down