Skip to content
Snippets Groups Projects
Commit 5e171987 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Check if related page exist before trying to render it.

parent e1bc71fa
No related branches found
No related tags found
No related merge requests found
{% load i18n wagtailcore_tags wagtailimages_tags %}
{% with page=page.specific %}
{% if page %}
<a class="card" href="{% pageurl page %}">
<h6 class="card__subheading">
{% if page.is_open %}
......@@ -21,4 +22,5 @@
{% endif %}
<svg class="icon icon--card-pixels"><use xlink:href="#arrow-head-pixels--transparent"></use></svg>
</a>
{% endif %}
{% endwith %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment