Skip to content

Commit 2bbc8ad

Browse files
authored
Fixed dates in book-shelf (alshedivat#3446)
Fixes alshedivat#3443. Signed-off-by: George Araújo <george.gcac@gmail.com>
1 parent cfed3b0 commit 2bbc8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_layouts/book-shelf.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ layout: page
77
{% assign collection = site[page.collection] %}
88
{% if collection and collection.size > 0 %}
99
{% for item in collection reversed %}
10-
{% assign current_year = item.date | date: '%Y' %}
10+
{% assign current_year = item.started | date: '%Y' %}
1111
{% if current_year != year %}
1212
{% unless forloop.first %}
1313
</ul>
1414
{% endunless %}
15-
<h1 id="y{{item.date | date: "%Y"}}">
15+
<h1 id="y{{item.started | date: "%Y"}}">
1616
<a href="{{ current_year | prepend: '/books/' | relative_url }}">{{ current_year }}</a>
1717
</h1>
1818
<ul>

0 commit comments

Comments
 (0)