Skip to content

Commit 15237cd

Browse files
gdallepecey
authored andcommitted
Empty entrytype if not article or inproceedings (alshedivat#578)
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.
1 parent 40bebdf commit 15237cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_layouts/bib.html

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
7676
{%- elsif entry.type == "inproceedings" -%}
7777
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
78+
{%- else -%}
79+
{%- capture entrytype -%}{%- endcapture -%}
7880
{%- endif -%}
7981
{%- if entry.month -%}
8082
{%- capture entrymonth -%}{{ " " }}{{ entry.month | capitalize }}{%- endcapture -%}

0 commit comments

Comments
 (0)