Skip to content

Commit

Permalink
Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbullock committed Jan 2, 2023
1 parent a62ca9f commit de30197
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/tags.thyme
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<div id="wrap">
<div th:replace="menu.thyme::menu"/>
<div class="container">

<div class="page-header">
<h1 th:text="'Tag: '+${tag}">tag</h1>
</div>

<th:block th:with="total_posts = *{#lists.size(tag_posts)}">
<th:block th:if="*{total_posts != 0}" th:with="first_post = *{posts[0]}">
<th:block th:if="*{total_posts != 0}" th:with="first_post = *{tag_posts[0]}">
<h3 th:text="*{#dates.format(first_post.date,'MMMM yyyy')}">June 2014</h3>

<h4>
Expand All @@ -21,7 +21,7 @@
</h4>

<th:block th:if="*{total_posts &gt; 1}" th:each="i : *{#numbers.sequence( 1, total_posts - 1)}">
<th:block th:with="previous_post = *{posts[i - 1]}, current_post = *{posts[i]}">
<th:block th:with="previous_post = *{tag_posts[i - 1]}, current_post = *{tag_posts[i]}">
<th:block th:if="*{#dates.format(previous_post.date,'MMMM yyyy')} != *{#dates.format(current_post.date,'MMMM yyyy')}">
<p></p>
<h3 th:text="*{#dates.format(current_post.date,'MMMM yyyy')}">July 2014</h3>
Expand All @@ -38,7 +38,7 @@

</div>
</div>

<div th:replace="footer.thyme::footer"></div>
</body>
</html>
</html>

0 comments on commit de30197

Please sign in to comment.