Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 8 additions & 0 deletions tbx/project_styleguide/templates/patterns/base_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
{% load static wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags %}

{% block meta_tags %}
{% if page %}
{% if page.canonical_url %}
<link rel="canonical" href="{{ page.canonical_url }}">
{% else %}
<link rel="canonical" href="{% fullpageurl page %}{% if 'page' in request.GET %}?page={{ request.GET.page|urlencode }}{% endif %}">
{% endif %}
{% endif %}

{% if GOOGLE_TAG_MANAGER_ID and not request.in_preview_panel %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{% extends "patterns/base_page.html" %}
{% load wagtailcore_tags wagtailimages_tags static %}

{% block meta_tags %}
{{ block.super }}
{% if 'filter' in request.GET or 'page' in request.GET %}
<link rel="canonical" href="{% fullpageurl self %}">
{% endif %}
{% endblock %}

{% block content %}
<div class="grid grid--spacer-large">
{% include "patterns/molecules/title-filters/title-filters.html" with item=page tags=tags %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

{% load wagtailcore_tags wagtailimages_tags %}

{% block meta_tags %}
{{ block.super }}
{% if 'filter' in request.GET or 'page' in request.GET %}
<link rel="canonical" href="{% fullpageurl self %}">
{% endif %}
{% endblock %}

{% block content %}
<div class="grid grid--spacer-large">
{# Title and Filters #}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{% extends "patterns/base_page.html" %}
{% load wagtailcore_tags wagtailimages_tags static %}

{% block meta_tags %}
{{ block.super }}
{% if 'filter' in request.GET or 'page' in request.GET %}
<link rel="canonical" href="{% fullpageurl self %}">
{% endif %}
{% endblock %}

{% block content %}
<div class="grid">
{% include "patterns/molecules/title-filters/title-filters--team.html" with tags=tags item=page strapline=page.strapline %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{% extends "patterns/base_page.html" %}
{% load wagtailcore_tags wagtailimages_tags static %}

{% block meta_tags %}
{{ block.super }}
{% if 'filter' in request.GET or 'page' in request.GET %}
<link rel="canonical" href="{% fullpageurl self %}">
{% endif %}
{% endblock %}

{% block content %}
<div class="grid grid--spacer-large">
{% include "patterns/molecules/title-filters/title-filters.html" with item=page tags=tags %}
Expand Down
Loading