Skip to content

Commit 39d1f5e

Browse files
authored
Fixed hard-coded bib files in templates (alshedivat#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`.
1 parent 2f035fa commit 39d1f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_includes/selected_papers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

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

_pages/publications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ nav_order: 1
1212

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

1818
</div>

0 commit comments

Comments
 (0)