Skip to content

Commit

Permalink
Empty entrytype if not article or inproceedings (alshedivat#578)
Browse files Browse the repository at this point in the history
For bibtex entries that are neither articles nor proceedings, the value `entrytype` carries over from the previous entry in the loop, leading to incorrect displays. This PR fixes that.
  • Loading branch information
gdalle authored and pecey committed Jan 27, 2023
1 parent 40bebdf commit 15237cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
{%- elsif entry.type == "inproceedings" -%}
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
{%- else -%}
{%- capture entrytype -%}{%- endcapture -%}
{%- endif -%}
{%- if entry.month -%}
{%- capture entrymonth -%}{{ " " }}{{ entry.month | capitalize }}{%- endcapture -%}
Expand Down

0 comments on commit 15237cd

Please sign in to comment.