Skip to content

Commit

Permalink
don't throw error if page.excerpt is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-gui committed Aug 4, 2023
1 parent 0745272 commit 663db55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pages/event.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>

{% block event_excerpt %}
{% if page.excerpt is not null %}
{% if page.excerpt is defined and page.excerpt is not null %}
<p class="lead">{{ page.excerpt }}</p>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 663db55

Please sign in to comment.