Skip to content

Commit 1a612c6

Browse files
authored
Removed need for years in bibliography page (#1500)
Implementing #1390. Signed-off-by: George Araujo <george.gcac@gmail.com>
1 parent 6eebb65 commit 1a612c6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ scholar:
293293
details_link: Details
294294

295295
query: "@*"
296+
group_by: year
297+
group_order: descending
296298

297299
badges: # Display different badges for your publications
298300
altmetric_badge: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/)

_pages/publications.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ layout: page
33
permalink: /publications/
44
title: publications
55
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
6-
years: [1967, 1956, 1950, 1935, 1905]
76
nav: true
87
nav_order: 1
98
---
109
<!-- _pages/publications.md -->
1110
<div class="publications">
1211

13-
{%- for y in page.years %}
14-
<h2 class="year">{{y}}</h2>
15-
{% bibliography -f {{ site.scholar.bibliography }} -q @*[year={{y}}]* %}
16-
{% endfor %}
12+
{% bibliography -f {{ site.scholar.bibliography }} %}
1713

1814
</div>

_sass/_base.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ footer.sticky-bottom {
567567
}
568568
}
569569

570-
h2.year {
570+
h2.bibliography {
571571
color: var(--global-divider-color);
572572
border-top: 1px solid var(--global-divider-color);
573573
padding-top: 1rem;
@@ -1001,4 +1001,4 @@ nav[data-toggle="toc"] {
10011001
color: var(--global-danger-block-title);
10021002
}
10031003
}
1004-
}
1004+
}

0 commit comments

Comments
 (0)