Skip to content

Commit f12f676

Browse files
authored
Update bibliography.html
1 parent a24e426 commit f12f676

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

_includes/bibliography.html

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,14 @@
1-
### hello
1+
{% assign current_year = site.time | date: "%Y" | plus: 0 %}
2+
{% assign start_year = 2005 %}
23

3-
{% assign years = "2040,2039,2038,2037,2036,2035,2034,2033,2032,2031,2030,2029,2028,2027,2026,2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005" | split: "," %}
4-
5-
{% for year in years %}
4+
{% for year in (start_year..current_year) reversed %}
65
{% capture bib_year %}{% bibliography --query @*[year={{ year }}] %}{% endcapture %}
7-
{% if bib_year != "" %}
6+
{% assign bib_trimmed = bib_year | strip %}
7+
{% unless bib_trimmed == "" %}
88
### {{ year }}
99
{{ bib_year }}
10-
{% endif %}
10+
{% endunless %}
1111
{% endfor %}
1212

1313

1414

15-
16-
17-
### 2025
18-
{% bibliography --query @*[year=2025] %}
19-
20-
### 2024
21-
{% bibliography --query @*[year=2024] %}
22-
23-
### 2023
24-
{% bibliography --query @*[year=2023] %}
25-
26-
27-
28-
29-
30-
31-

0 commit comments

Comments
 (0)