Skip to content

Commit

Permalink
Empty entrytype if not article or inproceedings (#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 Apr 2, 2022
1 parent d05ef48 commit a2f7f05
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 a2f7f05

Please sign in to comment.