Skip to content

Commit 35b43da

Browse files
committed
Test some logical around whether article exists
Need to yield some bits
1 parent f3e7052 commit 35b43da

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

templates/forms/misc/-homepage-modules.txp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<div class="container">
33

44
<main id="main" aria-label="Main content">
5-
<div class="align-center py-2">
6-
<h3>Preamble heading</h3>
7-
<h1>A main h1 heading about our service offering, and some general statements about how great we are, basically.</h1>
8-
</div>
5+
<txp:output_form form="-module--text--heading01" />
96
</main>
107

118
</div>
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<div class="align-center py-2">
2-
<txp:if_excerpt><h3><txp:excerpt escape="tidy, p" /></h3></txp:if_excerpt>
3-
<h1><txp:title /></h1>
2+
<txp:article_custom section="pageless-content" category="test">
3+
<txp:if_excerpt><h3><txp:excerpt escape="tidy, p" /></h3></txp:if_excerpt>
4+
<h1><txp:title /></h1>
5+
<txp:if_yield name="call-to-action"><txp:yield name="call-to-action" /></txp:if_yield>
6+
<txp:else />
7+
<h3>Preamble heading</h3>
8+
<h1>A main h1 heading about our service offering, and some general statements about how great we are, basically.</h1>
9+
</txp:article_custom>
410
</div>

themes/hive-framework-0.0.5/forms/misc/-homepage-modules.txp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<div class="container">
33

44
<main id="main" aria-label="Main content">
5-
<div class="align-center py-2">
6-
<h3>Preamble heading</h3>
7-
<h1>A main h1 heading about our service offering, and some general statements about how great we are, basically.</h1>
8-
</div>
5+
<txp:output_form form="-module--text--heading01" />
96
</main>
107

118
</div>
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<div class="align-center py-2">
2-
<txp:if_excerpt><h3><txp:excerpt escape="tidy, p" /></h3></txp:if_excerpt>
3-
<h1><txp:title /></h1>
2+
<txp:article_custom section="pageless-content" category="test">
3+
<txp:if_excerpt><h3><txp:excerpt escape="tidy, p" /></h3></txp:if_excerpt>
4+
<h1><txp:title /></h1>
5+
<txp:if_yield name="call-to-action"><txp:yield name="call-to-action" /></txp:if_yield>
6+
<txp:else />
7+
<h3>Preamble heading</h3>
8+
<h1>A main h1 heading about our service offering, and some general statements about how great we are, basically.</h1>
9+
</txp:article_custom>
410
</div>

0 commit comments

Comments
 (0)