diff --git a/_layouts/bib.html b/_layouts/bib.html index ef84889..615a89c 100644 --- a/_layouts/bib.html +++ b/_layouts/bib.html @@ -1,222 +1,222 @@ --- --- -
-
- {%- if thesis contains entry.type -%} - {%- assign shortjournal = "thesis" -%} - {%- elsif entry.shortjournal -%} - {%- assign shortjournal = entry.shortjournal -%} - {%- endif -%} - {%- if entry.preview -%} - {% if entry.preview contains '://' -%} - - {%- else -%} - - {%- endif -%} - {%- elsif shortjournal -%} - {%- if site.data.venues[shortjournal] -%} - {%- assign venue_style = nil -%} - {%- if site.data.venues[shortjournal].color != blank -%} - {%- assign venue_style = site.data.venues[shortjournal].color | prepend: 'style="background-color:' | append: '"' -%} - {%- endif -%} - {{shortjournal}} - {%- else -%} - {{shortjournal}} - {%- endif -%} - {%- assign shortjournal = nil -%} - {%- endif -%} -
+
+
+{%- if thesis contains entry.type -%} +{%- assign shortjournal = "thesis" -%} +{%- elsif entry.shortjournal -%} +{%- assign shortjournal = entry.shortjournal -%} +{%- endif -%} +{%- if entry.preview -%} +{% if entry.preview contains '://' -%} + +{%- else -%} + +{%- endif -%} +{%- elsif shortjournal -%} +{%- if site.data.venues[shortjournal] -%} +{%- assign venue_style = nil -%} +{%- if site.data.venues[shortjournal].color != blank -%} +{%- assign venue_style = site.data.venues[shortjournal].color | prepend: 'style="background-color:' | append: '"' -%} +{%- endif -%} +{{shortjournal}} +{%- else -%} +{{shortjournal}} +{%- endif -%} +{%- assign shortjournal = nil -%} +{%- endif -%} +
- -
- -
{{entry.title}}
- -
- {% assign author_array_size = entry.author_array | size %} + +
+ +
{{entry.title}}
+ +
+{% assign author_array_size = entry.author_array | size %} - {% assign author_array_limit = author_array_size %} - {%- if site.max_author_limit and author_array_size > site.max_author_limit %} - {% assign author_array_limit = site.max_author_limit %} - {% endif %} +{% assign author_array_limit = author_array_size %} +{%- if site.max_author_limit and author_array_size > site.max_author_limit %} +{% assign author_array_limit = site.max_author_limit %} +{% endif %} - {%- for author in entry.author_array limit: author_array_limit -%} - {%- assign author_is_self = false -%} - {%- assign author_last_name = author.last | remove: "¶" | remove: "&" | remove: "*" | remove: "†" | remove: "^" -%} - {%- if site.scholar.last_name contains author_last_name -%} - {%- if site.scholar.first_name contains author.first -%} - {%- assign author_is_self = true -%} - {%- endif -%} - {%- endif -%} - {%- assign coauthor_url = nil -%} - {%- if site.data.coauthors[author_last_name] -%} - {%- for coauthor in site.data.coauthors[author_last_name] -%} - {%- if coauthor.firstname contains author.first -%} - {%- assign coauthor_url = coauthor.url -%} - {%- break -%} - {%- endif -%} - {%- endfor -%} - {%- endif -%} +{%- for author in entry.author_array limit: author_array_limit -%} +{%- assign author_is_self = false -%} +{%- assign author_last_name = author.last | remove: "¶" | remove: "&" | remove: "*" | remove: "†" | remove: "^" -%} +{%- if site.scholar.last_name contains author_last_name -%} +{%- if site.scholar.first_name contains author.first -%} +{%- assign author_is_self = true -%} +{%- endif -%} +{%- endif -%} +{%- assign coauthor_url = nil -%} +{%- if site.data.coauthors[author_last_name] -%} +{%- for coauthor in site.data.coauthors[author_last_name] -%} +{%- if coauthor.firstname contains author.first -%} + {%- assign coauthor_url = coauthor.url -%} + {%- break -%} +{%- endif -%} +{%- endfor -%} +{%- endif -%} - {%- if forloop.length > 1 -%} - {%- if forloop.first == false -%}, {%- endif -%} - {%- if forloop.last and author_array_limit == author_array_size -%}and {%- endif -%} - {%- endif -%} - {%- if author_is_self -%} - {{author.first}} {{author.last}} - {%- else -%} - {%- if coauthor_url -%} - {{author.first}} {{author.last}} - {%- else -%} - {{author.first}} {{author.last}} - {%- endif -%} - {%- endif -%} - {%- endfor -%} - {%- assign more_authors = author_array_size | minus: author_array_limit -%} +{%- if forloop.length > 1 -%} +{%- if forloop.first == false -%}, {%- endif -%} +{%- if forloop.last and author_array_limit == author_array_size -%}and {%- endif -%} +{%- endif -%} +{%- if author_is_self -%} +{{author.first}} {{author.last}} +{%- else -%} +{%- if coauthor_url -%} +{{author.first}} {{author.last}} +{%- else -%} +{{author.first}} {{author.last}} +{%- endif -%} +{%- endif -%} +{%- endfor -%} +{%- assign more_authors = author_array_size | minus: author_array_limit -%} - {%- assign more_authors_hide = more_authors | append: " more author" -%} - {%- if more_authors > 0 -%} - {%- if more_authors > 1 -%} - {%- assign more_authors_hide = more_authors_hide | append: "s" -%} - {%- endif -%} - {%- assign more_authors_show = '' -%} - {%- for author in entry.author_array offset: author_array_limit -%} - {%- assign more_authors_show = more_authors_show | append: author.first | append: " " | append: author.last -%} - {%- unless forloop.last -%} - {%- assign more_authors_show = more_authors_show | append: ", " -%} - {%- endunless -%} - {%- endfor -%} - , and - {{more_authors_hide}} - {%- endif -%} +{%- assign more_authors_hide = more_authors | append: " more author" -%} +{%- if more_authors > 0 -%} +{%- if more_authors > 1 -%} +{%- assign more_authors_hide = more_authors_hide | append: "s" -%} +{%- endif -%} +{%- assign more_authors_show = '' -%} +{%- for author in entry.author_array offset: author_array_limit -%} +{%- assign more_authors_show = more_authors_show | append: author.first | append: " " | append: author.last -%} +{%- unless forloop.last -%} +{%- assign more_authors_show = more_authors_show | append: ", " -%} +{%- endunless -%} +{%- endfor -%} +, and +{{more_authors_hide}} +{%- endif -%} -
+
- - {% assign proceedings = "inproceedings,incollection" | split: ','%} - {% assign thesis = "thesis,mastersthesis,phdthesis" | split: ','%} - {% if entry.type == "article" -%} - {%- capture entrytype -%}{{entry.journaltitle}}{%- endcapture -%} - {%- elsif proceedings contains entry.type -%} - {%- capture entrytype -%}In {{entry.booktitle}} {%- endcapture -%} - {%- elsif thesis contains entry.type -%} - {%- capture entrytype -%}{{entry.institution}} {%- endcapture -%} - {%- else -%} - {%- capture entrytype -%}{%- endcapture -%} - {%- endif -%} - {%- if entry.month -%} - {%- capture entrymonth -%}{{ " " }}{{ entry.month | capitalize }}{%- endcapture -%} - {%- endif -%} - {%- if entry.year -%} - {%- capture entryyear -%}{{ " " }}{{entry.year}}{%- endcapture -%} - {%- endif -%} - {% assign entrytype_text = entrytype | strip_html | strip %} - {%- capture periodical -%}{{ entrytype }}{%- if entrytype_text != "" and entryyear != "" -%}, {%- endif -%}{{ entrymonth }}{{ entryyear }}{%- endcapture -%} -
- {{ periodical | strip }} -
-
- {{ entry.note | strip }} -
+ +{% assign proceedings = "inproceedings,incollection" | split: ','%} +{% assign thesis = "thesis,mastersthesis,phdthesis" | split: ','%} +{% if entry.type == "article" -%} +{%- capture entrytype -%}{{entry.journaltitle}}{%- endcapture -%} +{%- elsif proceedings contains entry.type -%} +{%- capture entrytype -%}In {{entry.booktitle}} {%- endcapture -%} +{%- elsif thesis contains entry.type -%} +{%- capture entrytype -%}{{entry.institution}} {%- endcapture -%} +{%- else -%} +{%- capture entrytype -%}{%- endcapture -%} +{%- endif -%} +{%- if entry.month -%} +{%- capture entrymonth -%}{{ " " }}{{ entry.month | capitalize }}{%- endcapture -%} +{%- endif -%} +{%- if entry.year -%} +{%- capture entryyear -%}{{ " " }}{{entry.year}}{%- endcapture -%} +{%- endif -%} +{% assign entrytype_text = entrytype | strip_html | strip %} +{%- capture periodical -%}{{ entrytype }}{%- if entrytype_text != "" and entryyear != "" -%}, {%- endif -%}{{ entrymonth }}{{ entryyear }}{%- endcapture -%} +
+{{ periodical | strip }} +
+
+{{ entry.note | strip }} +
- - - {% if site.badges %} -
- {%- if site.badges.altmetric_badge or entry.altmetric %} - - {%- endif %} - {%- if site.badges.dimensions_badge or entry.dimensions %} - - {%- endif %} -
- {%- endif %} + + +{% if site.badges %} +
+{%- if site.badges.altmetric_badge or entry.altmetric %} + +{%- endif %} +{%- if site.badges.dimensions_badge or entry.dimensions %} + +{%- endif %} +
+{%- endif %} - {% if entry.abstract -%} - - - {%- endif -%} +{% if entry.abstract -%} + + +{%- endif -%} - {% if site.bibtex_show -%} - - - {%- endif %} -
-
+{% if site.bibtex_show -%} + + +{%- endif %} +
+
diff --git a/_pages/publications.md b/_pages/publications.md index e463632..4646580 100644 --- a/_pages/publications.md +++ b/_pages/publications.md @@ -11,8 +11,8 @@ nav_order: 1
{%- for y in page.years %} -

{{y}}

- {% bibliography -f papers -q @*[year={{y}}]* %} +

{{y}}

+{% bibliography -f papers -q @*[year={{y}}]* %} {% endfor %}