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 and hgchen committed Dec 2, 2023
1 parent cb2bfd9 commit b43bb6f
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 b43bb6f

Please sign in to comment.