Skip to content

Commit

Permalink
fix: Fix parameters may cause theme crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
AirboZH committed Feb 2, 2024
1 parent ac5f01f commit 3f1008d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<span>[[#{breadcrumb.archive}]]</span>
</th:block>
<div class="pl-xl-3" id="archives" th:fragment="content">
<th:block th:each="archive : ${postFinder.archives(1,-1).items}">
<th:block th:each="archive : ${postFinder.archives(1,0).items}">
<div class="year lead">[[${archive.year}]]</div>
<ul class="list-unstyled">
<th:block th:each="month : ${archive.months}">
Expand Down
2 changes: 1 addition & 1 deletion templates/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 class="ps-lg-2">
</h1>
<ul
class="post-content ps-0"
th:with="posts = ${postFinder.listByTag(1,-1,tag.metadata.name)}"
th:with="posts = ${postFinder.listByTag(1,0,tag.metadata.name)}"
>
<li
class="d-flex justify-content-between px-md-3"
Expand Down

0 comments on commit 3f1008d

Please sign in to comment.