You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The archive page is showing the month for each th:each even though the posts belong to the same month. It renders the month header for each post instead of grouping them by month. Seems like the following line does not update the outer (outside the span) last_month variable.
I'm not sure there is a simple fix to this having checked the Thymeleaf documentation, it doesn't look like you can alter the last_month variable from another tag, the span tag just sets another variable of the same name but in the scope of that span tag.
The archive page is showing the month for each th:each even though the posts belong to the same month. It renders the month header for each post instead of grouping them by month. Seems like the following line does not update the outer (outside the span) last_month variable.
<span th:remove='all' th:with='last_month = ${#dates.format(post.date,"MMMM yyyy")}'/>
https://github.com/jbake-org/jbake-example-project-thymeleaf/blob/master/templates/archive.thyme#L17
I am not sure how to fix this using thymeleaf only. If you can provide some hints, I will be happy to take a look and contribute back. Thank you !
The text was updated successfully, but these errors were encountered: