Improve bib layout for thesis (#920)

This commit is contained in:
Simmo Saan 2022-12-25 21:03:26 +02:00 committed by GitHub
parent 34eb856fb8
commit 925cac03bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,6 @@
<!-- Entry bib key -->
<div id="{{entry.key}}" class="col-sm-8">
{% if entry.type == "thesis" -%}
{{reference}}
{%- else %}
<!-- Title -->
<div class="title">{{entry.title}}</div>
<!-- Author -->
@ -107,10 +104,13 @@
<!-- Journal/Book title and date -->
{% assign proceedings = "inproceedings,incollection" | split: ','%}
{% assign thesis = "thesis,mastersthesis,phdthesis" | split: ','%}
{% if entry.type == "article" -%}
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
{%- elsif proceedings contains entry.type -%}
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
{%- elsif thesis contains entry.type -%}
{%- capture entrytype -%}<em>{{entry.school}}</em> {%- endcapture -%}
{%- else -%}
{%- capture entrytype -%}{%- endcapture -%}
{%- endif -%}
@ -120,11 +120,14 @@
{%- if entry.year -%}
{%- capture entryyear -%}{{ " " }}{{entry.year}}{%- endcapture -%}
{%- endif -%}
{%- capture periodical -%}{{ entrytype }}{{ entrymonth }}{{ entryyear }}{%- endcapture -%}
{% assign entrytype_text = entrytype | strip_html | strip %}
{%- capture periodical -%}{{ entrytype }}{%- if entrytype_text != "" and entryyear != "" -%}, {%- endif -%}{{ entrymonth }}{{ entryyear }}{%- endcapture -%}
<div class="periodical">
{{ periodical | strip }}
</div>
{%- endif %}
<div class="periodical">
{{ entry.note | strip }}
</div>
<!-- Links/Buttons -->
<div class="links">