Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 281cc82

Browse files
fix bug where proceedings do not render (alshedivat#913)
1 parent bfc4725 commit 281cc82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_layouts/bib.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@
106106
</div>
107107

108108
<!-- Journal/Book title and date -->
109+
{% assign proceedings = "inproceedings, incollection" | split: ','%}
109110
{% if entry.type == "article" -%}
110111
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
111-
{%- elsif ["inproceedings", "incollection"] contains entry.type -%}
112+
{%- elsif proceedings contains entry.type -%}
112113
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
113114
{%- else -%}
114115
{%- capture entrytype -%}{%- endcapture -%}

0 commit comments

Comments
 (0)