fix bug where proceedings do not render (#913)

This commit is contained in:
Josh Veitch-Michaelis 2022-10-02 14:51:25 +02:00 committed by GitHub
parent bfc47258d7
commit 281cc82d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -106,9 +106,10 @@
</div> </div>
<!-- Journal/Book title and date --> <!-- Journal/Book title and date -->
{% assign proceedings = "inproceedings, incollection" | split: ','%}
{% if entry.type == "article" -%} {% if entry.type == "article" -%}
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%} {%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
{%- elsif ["inproceedings", "incollection"] contains entry.type -%} {%- elsif proceedings contains entry.type -%}
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%} {%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
{%- else -%} {%- else -%}
{%- capture entrytype -%}{%- endcapture -%} {%- capture entrytype -%}{%- endcapture -%}