Skip to content

Commit 218454f

Browse files
Add condition to display header only when field is not empty
1 parent 1b22253 commit 218454f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Resources/Private/Partials/Header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<f:if condition="{entry.header}">
12
<header>
23
<f:switch expression="{entry.header_layout}">
34
<f:case value="1">
@@ -23,3 +24,4 @@ <h6><f:format.raw>{entry.header}</f:format.raw></h6>
2324
</f:defaultCase>
2425
</f:switch>
2526
</header>
27+
</f:if>

0 commit comments

Comments
 (0)