forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
layout: page | ||
permalink: /publications/ | ||
title: publications | ||
description: publications by categories in reversed chronological order. generated by jekyll-scholar. | ||
years: [1967, 1956, 1950, 1935, 1905] | ||
nav: true | ||
nav_order: 1 | ||
--- | ||
<!-- _pages/publications.md --> | ||
<div class="publications"> | ||
|
||
{%- for y in page.years %} | ||
<h2 class="year">{{y}}</h2> | ||
{% bibliography -f {{ site.scholar.bibliography }} -q @*[year={{y}}]* %} | ||
{% endfor %} | ||
|
||
</div> |