From a2f7f05bf354c256025d90e80babf2c1be49f918 Mon Sep 17 00:00:00 2001
From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
Date: Sun, 3 Apr 2022 00:23:00 +0200
Subject: [PATCH] Empty entrytype if not article or inproceedings (#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.
---
_layouts/bib.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/_layouts/bib.html b/_layouts/bib.html
index b224402fa7d9..8e80c424a3b2 100644
--- a/_layouts/bib.html
+++ b/_layouts/bib.html
@@ -75,6 +75,8 @@
{%- capture entrytype -%}{{entry.journal}}{%- endcapture -%}
{%- elsif entry.type == "inproceedings" -%}
{%- capture entrytype -%}In {{entry.booktitle}} {%- endcapture -%}
+ {%- else -%}
+ {%- capture entrytype -%}{%- endcapture -%}
{%- endif -%}
{%- if entry.month -%}
{%- capture entrymonth -%}{{ " " }}{{ entry.month | capitalize }}{%- endcapture -%}