Skip to content
Snippets Groups Projects
Verified Commit c8e117db authored by Alexa Valentová's avatar Alexa Valentová
Browse files

dont try routablepageurl when there is no page

parent e5a4b2b5
No related branches found
No related tags found
2 merge requests!977Dont try routablepageurl when there is no page,!976Dont try page routablepageurl when there is no page
Pipeline #18170 passed
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
{% load static wagtailcore_tags wagtailimages_tags wagtailroutablepage_tags %} {% load static wagtailcore_tags wagtailimages_tags wagtailroutablepage_tags %}
{% block content %} {% block content %}
{% routablepageurl page.root_page.articles_page "tags" as articles_tag_page_url %} {% if page.root_page.articles_page %}
{% routablepageurl page.root_page.articles_page "tags" as articles_tag_page_url %}
{% endif %}
<article> <article>
<link itemprop="mainEntityOfPage" href="{{ page.url }}"> <link itemprop="mainEntityOfPage" href="{{ page.url }}">
<meta itemprop="datePublished" content="{{ page.last_published_at }}"> <meta itemprop="datePublished" content="{{ page.last_published_at }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment