Commit 6017f8a
committed
Fix year delimiters in releases page
The previous approach to detect if a release is the last one in a year
was incorrect. It checked if the following post was in the next year.
However, the following post doesn't have to be a release, so the check
could fail.
The result was missing year delimiters "Releases in YYYY".
A mutable variable makes it easier to track the actual year of the last
rendered release post.1 parent f0c9504 commit 6017f8a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments