Skip to content

Commit

Permalink
Removed need for years in bibliography page (alshedivat#1500)
Browse files Browse the repository at this point in the history
Implementing alshedivat#1390.

Signed-off-by: George Araujo <[email protected]>
  • Loading branch information
george-gca authored and wangmagg committed May 14, 2024
1 parent f354c1e commit ff0b4d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ scholar:
details_link: Details

query: "@*"
group_by: year
group_order: descending

badges: # Display different badges for your publications
altmetric_badge: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/)
Expand Down
6 changes: 1 addition & 5 deletions _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ layout: page
permalink: /publications/
title: publications
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
years: [1967, 1956, 1950, 1935, 1905]
nav: true
nav_order: 1
---
<!-- _pages/publications.md -->
<div class="publications">

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

</div>
4 changes: 2 additions & 2 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ footer.sticky-bottom {
}
}

h2.year {
h2.bibliography {
color: var(--global-divider-color);
border-top: 1px solid var(--global-divider-color);
padding-top: 1rem;
Expand Down Expand Up @@ -1001,4 +1001,4 @@ nav[data-toggle="toc"] {
color: var(--global-danger-block-title);
}
}
}
}

0 comments on commit ff0b4d4

Please sign in to comment.