Skip to content

Commit d5e0d74

Browse files
committed
Only display site slogan if exists
1 parent 10d2157 commit d5e0d74

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

dist/four-point-seven/forms/misc/body_header.txp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<header class="site-header">
22
<h1><txp:link_to_home><txp:site_name /></txp:link_to_home></h1>
3-
<h3><txp:site_slogan /></h3>
3+
<txp:evaluate>
4+
<h3><txp:site_slogan /></h3>
5+
</txp:evaluate>
46
</header>
57

68
<nav class="site-navigation" aria-label="<txp:text item="navigation" />" itemscope itemtype="https://schema.org/SiteNavigationElement">

src/templates/forms/misc/body_header.txp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<header class="site-header">
22
<h1><txp:link_to_home><txp:site_name /></txp:link_to_home></h1>
3-
<h3><txp:site_slogan /></h3>
3+
<txp:evaluate>
4+
<h3><txp:site_slogan /></h3>
5+
</txp:evaluate>
46
</header>
57

68
<nav class="site-navigation" aria-label="<txp:text item="navigation" />" itemscope itemtype="https://schema.org/SiteNavigationElement">

0 commit comments

Comments
 (0)