Fixed hard-coded bib files in templates (#1373)

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`.
This commit is contained in:
Yue Gao 2023-04-27 09:55:57 -05:00 committed by GitHub
parent 2f035fa2a5
commit 39d1f5e522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<div class="publications">
{% bibliography -f papers -q @*[selected=true]* %}
{% bibliography -f {{ site.scholar.bibliography }} -q @*[selected=true]* %}
</div>

View File

@ -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>