Improve bib layout for thesis (#920)
This commit is contained in:
parent
34eb856fb8
commit
925cac03bb
@ -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 -->
|
||||
@ -106,11 +103,14 @@
|
||||
</div>
|
||||
|
||||
<!-- Journal/Book title and date -->
|
||||
{% assign proceedings = "inproceedings, incollection" | split: ','%}
|
||||
{% 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">
|
||||
|
Loading…
Reference in New Issue
Block a user