Skip to content

Commit 5a1434d

Browse files
committed
Add check
1 parent ce68c1b commit 5a1434d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web/themes/custom/hoeringsportal/templates/node/node--project-page.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<div class="col-md-8 py-3 pt-md-5">
55
<span class="text-primary">{{ content.field_project_category }}</span>
66
<h1>{{ node.title.value }}</h1>
7-
<p class="fs-3">{{ content.field_teaser }}</p>
7+
{% if content.field_teaser %}
8+
<p class="fs-3">{{ content.field_teaser }}</p>
9+
{% endif %}
810
{{ content|without('field_project_category', 'field_teaser', 'field_content_sections', 'published_at') }}
911
</div>
1012
<div class="col-md-4 pt-md-3">

0 commit comments

Comments
 (0)