Improve bib layout for thesis (#920)
This commit is contained in:
parent
34eb856fb8
commit
925cac03bb
|
|
@ -24,9 +24,6 @@
|
||||||
|
|
||||||
<!-- Entry bib key -->
|
<!-- Entry bib key -->
|
||||||
<div id="{{entry.key}}" class="col-sm-8">
|
<div id="{{entry.key}}" class="col-sm-8">
|
||||||
{% if entry.type == "thesis" -%}
|
|
||||||
{{reference}}
|
|
||||||
{%- else %}
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<div class="title">{{entry.title}}</div>
|
<div class="title">{{entry.title}}</div>
|
||||||
<!-- Author -->
|
<!-- Author -->
|
||||||
|
|
@ -106,11 +103,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Journal/Book title and date -->
|
<!-- 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" -%}
|
{% if entry.type == "article" -%}
|
||||||
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
|
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
|
||||||
{%- elsif proceedings contains entry.type -%}
|
{%- elsif proceedings contains entry.type -%}
|
||||||
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
|
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
|
||||||
|
{%- elsif thesis contains entry.type -%}
|
||||||
|
{%- capture entrytype -%}<em>{{entry.school}}</em> {%- endcapture -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- capture entrytype -%}{%- endcapture -%}
|
{%- capture entrytype -%}{%- endcapture -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
@ -120,11 +120,14 @@
|
||||||
{%- if entry.year -%}
|
{%- if entry.year -%}
|
||||||
{%- capture entryyear -%}{{ " " }}{{entry.year}}{%- endcapture -%}
|
{%- capture entryyear -%}{{ " " }}{{entry.year}}{%- endcapture -%}
|
||||||
{%- endif -%}
|
{%- 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">
|
<div class="periodical">
|
||||||
{{ periodical | strip }}
|
{{ periodical | strip }}
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
<div class="periodical">
|
||||||
|
{{ entry.note | strip }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Links/Buttons -->
|
<!-- Links/Buttons -->
|
||||||
<div class="links">
|
<div class="links">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue