Skip to content

Commit

Permalink
Fixed hard-coded bib files in templates (alshedivat#1373)
Browse files Browse the repository at this point in the history
The bibliography filename `papers.bib` is hard coded in templates, and
the equivalent setting in `_config.yml` is not used anywhere. So
changing the bib filename in `_config.yml` won't have any effects.

This PR replaces hard-coded filenames with the value from `_config.yml`.
  • Loading branch information
Lodour authored Apr 27, 2023
1 parent 921382d commit 288a166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/selected_papers.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<div class="publications">
{% bibliography -f papers -q @*[selected=true]* %}
{% bibliography -f {{ site.scholar.bibliography }} -q @*[selected=true]* %}
</div>
2 changes: 1 addition & 1 deletion _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nav_order: 1

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

</div>

0 comments on commit 288a166

Please sign in to comment.