Skip to content

Commit 4f6cc2b

Browse files
committed
Avoid empty nav tags
1 parent f3a8e1a commit 4f6cc2b

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
<!-- check if there are further results and provide pagination links depending on the result -->
3131
<txp:if_search_results min="11">
32-
<txp:evaluate>
33-
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
32+
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
33+
<txp:evaluate>
3434
<txp:newer rel="prev">
3535
<txp:text item="prev" />
3636
</txp:newer>
3737
<txp:older rel="next">
3838
<txp:text item="next" />
3939
</txp:older>
40-
</nav>
41-
</txp:evaluate>
40+
</txp:evaluate>
41+
</nav>
4242
</txp:if_search_results>

dist/four-point-seven/pages/archive.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<!-- ...or if you want to list all articles from all sections instead, then replace txp:article with txp:article_custom -->
109109

110110
<!-- add pagination links to foot of article listings if there are more articles available -->
111-
<txp:evaluate>
111+
<txp:evaluate test="newer,older">
112112
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
113113
<txp:newer rel="prev">
114114
<txp:text item="newer" />
@@ -123,7 +123,7 @@
123123
<txp:article />
124124

125125
<!-- add pagination links to foot of article if there are more articles available -->
126-
<txp:evaluate>
126+
<txp:evaluate test="prev,next">
127127
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
128128
<txp:link_to_prev>
129129
<txp:text item="prev" />

dist/four-point-seven/pages/default.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
</txp:if_variable>
9595

9696
<!-- add pagination links to foot of front page/author listings/category listings if there are more articles available -->
97-
<txp:evaluate>
97+
<txp:evaluate test="newer,older">
9898
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
9999
<txp:newer rel="prev">
100100
<txp:text item="newer" />

src/templates/forms/misc/search_display.txp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
<!-- check if there are further results and provide pagination links depending on the result -->
3131
<txp:if_search_results min="11">
32-
<txp:evaluate>
33-
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
32+
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
33+
<txp:evaluate>
3434
<txp:newer rel="prev">
3535
<txp:text item="prev" />
3636
</txp:newer>
3737
<txp:older rel="next">
3838
<txp:text item="next" />
3939
</txp:older>
40-
</nav>
41-
</txp:evaluate>
40+
</txp:evaluate>
41+
</nav>
4242
</txp:if_search_results>

src/templates/pages/archive.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<!-- ...or if you want to list all articles from all sections instead, then replace txp:article with txp:article_custom -->
109109

110110
<!-- add pagination links to foot of article listings if there are more articles available -->
111-
<txp:evaluate>
111+
<txp:evaluate test="newer,older">
112112
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
113113
<txp:newer rel="prev">
114114
<txp:text item="newer" />
@@ -123,7 +123,7 @@
123123
<txp:article />
124124

125125
<!-- add pagination links to foot of article if there are more articles available -->
126-
<txp:evaluate>
126+
<txp:evaluate test="prev,next">
127127
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
128128
<txp:link_to_prev>
129129
<txp:text item="prev" />

src/templates/pages/default.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
</txp:if_variable>
9595

9696
<!-- add pagination links to foot of front page/author listings/category listings if there are more articles available -->
97-
<txp:evaluate>
97+
<txp:evaluate test="newer,older">
9898
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
9999
<txp:newer rel="prev">
100100
<txp:text item="newer" />

0 commit comments

Comments
 (0)