From 288a1669f32dfa0ed35c541902b5706d3c6ba052 Mon Sep 17 00:00:00 2001 From: Yue Gao <11145354+Lodour@users.noreply.github.com> Date: Thu, 27 Apr 2023 09:55:57 -0500 Subject: [PATCH] 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`. --- _includes/selected_papers.html | 2 +- _pages/publications.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/selected_papers.html b/_includes/selected_papers.html index cfaeb80386e3..ca3b34f4f228 100644 --- a/_includes/selected_papers.html +++ b/_includes/selected_papers.html @@ -1,4 +1,4 @@
- {% bibliography -f papers -q @*[selected=true]* %} + {% bibliography -f {{ site.scholar.bibliography }} -q @*[selected=true]* %}
diff --git a/_pages/publications.md b/_pages/publications.md index 5a370a726c68..8948d578e138 100644 --- a/_pages/publications.md +++ b/_pages/publications.md @@ -12,7 +12,7 @@ nav_order: 1 {%- for y in page.years %}

{{y}}

- {% bibliography -f papers -q @*[year={{y}}]* %} + {% bibliography -f {{ site.scholar.bibliography }} -q @*[year={{y}}]* %} {% endfor %}