janispagel.de

Source code for https://janispagel.de
Log | Files | Refs | README | LICENSE

commit 4c0263a338085aa3258ffb9b649735ef850dcc44
parent 78543e06a738e2004aadd46eb8ea101619077e68
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Fri, 19 Jun 2020 05:40:17 +0200

Move bibtex download to common menu

Diffstat:
M_data/navigation.yml | 2+-
M_includes/pub/menu.html | 4+++-
Apublications/all.html | 72++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpublications/article.html | 3---
Mpublications/incollection.html | 3---
Dpublications/index.html | 75---------------------------------------------------------------------------
Mpublications/inproceedings.html | 3---
Mpublications/thesis.html | 3---
8 files changed, 76 insertions(+), 89 deletions(-)

diff --git a/_data/navigation.yml b/_data/navigation.yml @@ -5,7 +5,7 @@ url: /research - title: publications - url: /publications + url: /publications/all.html - title: projects url: /projects diff --git a/_includes/pub/menu.html b/_includes/pub/menu.html @@ -1 +1,3 @@ -<p><a href="index.html">All</a> | <a href="inproceedings.html">Conference Proceedings</a> | <a href="article.html">Journal Articles</a> | <a href="incollection.html">Collections</a> | <a href="thesis.html">Theses</a></p> +<p><a href="all.html">All</a> | <a href="inproceedings.html">Conference Proceedings</a> | <a href="article.html">Journal Articles</a> | <a href="incollection.html">Collections</a> | <a href="thesis.html">Theses</a></p> +<p><a href="{{ page.url | replace:'.html','' }}.bib">Download as BibTeX</a> | <a href="{{ page.url | replace:'.html','' }}.ris">Download as RIS</a></p> +<hr/> diff --git a/publications/all.html b/publications/all.html @@ -0,0 +1,72 @@ +--- +layout: page_with_menu +title: Publications +keywords: +- publications +menu: "pub/menu.html" +--- + +{% assign pubs = site.publications | where: "toappear", true %} + +{% if pubs.size > 0 %} +<h2 style="margin-top:20px;">to appear</h2> +<ul> +{% for pub in pubs %} +<div class="publication" lang="{{pub.lang}}"><li>{% include pub/{{ pub.type }}.html p=pub %} + <p class="right_aligned"> + {% if pub.doi %} + <a href="http://dx.doi.org/{{pub.doi}}">[doi]</a> + {% endif %} + {% if pub.iurl %} + <a href="{{pub.iurl}}">[paper]</a> + {% endif %} + {% if pub.downloads %} + {% for d in pub.downloads %} + <a href="{{d.url}}">[{{d.desc}}]</a> + {% endfor %} + {% endif %} + <a href="{{pub.url}}">[cite]</a> + </p> +</li></div> +{% endfor %} +</ul> +{% endif %} + +{% assign years = site.publications | map: "year" | uniq | sort | reverse %} +{% for y in years %} + + + +{% assign thisyear = site.publications | where:"year", y | where_exp: "item", "item.toappear != true" %} + +{% if thisyear.size == 0 %} +{% continue %} +{% endif %} + + +{% assign thisyear = thisyear | sort: 'month', 'first' | reverse %} + +<h2>{{ y }}</h2> +<ul> + +{% for pub in thisyear %} + +<div class="publication" lang="{{pub.lang}}"><li>{% include pub/{{ pub.type }}.html p=pub %} + <p class="right_aligned"> + {% if pub.doi %} + <a href="http://dx.doi.org/{{pub.doi}}">[doi]</a> + {% endif %} + {% if pub.iurl %} + <a href="{{pub.iurl}}">[paper]</a> + {% endif %} + {% if pub.downloads %} + {% for d in pub.downloads %} + <a href="{{d.url}}">[{{d.desc}}]</a> + {% endfor %} + {% endif %} + <a href="{{pub.url}}">[cite]</a> + </p> +</li></div> +{% endfor %} +</ul> +{% endfor %} diff --git a/publications/article.html b/publications/article.html @@ -6,9 +6,6 @@ keywords: menu: "pub/menu.html" --- -<p><a href="article.bib">Download all as BibTeX</a> | <a href="article.ris">Download all as RIS</a></p> -<hr/> - {% assign filtered_publications = site.publications | where:"type", "article" %} {% include pub/filtered-collection.html publications=filtered_publications showYear=true %} diff --git a/publications/incollection.html b/publications/incollection.html @@ -6,9 +6,6 @@ keywords: menu: "pub/menu.html" --- -<p><a href="incollection.bib">Download all as BibTeX</a> | <a href="incollection.ris">Download all as RIS</a></p> -<hr/> - {% assign filtered_publications = site.publications | where:"type", "incollection" %} {% include pub/filtered-collection.html publications=filtered_publications showYear=true %} diff --git a/publications/index.html b/publications/index.html @@ -1,75 +0,0 @@ ---- -layout: page_with_menu -title: Publications -keywords: -- publications -menu: "pub/menu.html" ---- - -<p><a href="all.bib">Download all as BibTeX</a> | <a href="all.ris">Download all as RIS</a></p> -<hr/> - -{% assign pubs = site.publications | where: "toappear", true %} - -{% if pubs.size > 0 %} -<h2 style="margin-top:20px;">to appear</h2> -<ul> -{% for pub in pubs %} -<div class="publication" lang="{{pub.lang}}"><li>{% include pub/{{ pub.type }}.html p=pub %} - <p class="right_aligned"> - {% if pub.doi %} - <a href="http://dx.doi.org/{{pub.doi}}">[doi]</a> - {% endif %} - {% if pub.iurl %} - <a href="{{pub.iurl}}">[paper]</a> - {% endif %} - {% if pub.downloads %} - {% for d in pub.downloads %} - <a href="{{d.url}}">[{{d.desc}}]</a> - {% endfor %} - {% endif %} - <a href="{{pub.url}}">[cite]</a> - </p> -</li></div> -{% endfor %} -</ul> -{% endif %} - -{% assign years = site.publications | map: "year" | uniq | sort | reverse %} -{% for y in years %} - - - -{% assign thisyear = site.publications | where:"year", y | where_exp: "item", "item.toappear != true" %} - -{% if thisyear.size == 0 %} -{% continue %} -{% endif %} - - -{% assign thisyear = thisyear | sort: 'month', 'first' | reverse %} - -<h2>{{ y }}</h2> -<ul> - -{% for pub in thisyear %} - -<div class="publication" lang="{{pub.lang}}"><li>{% include pub/{{ pub.type }}.html p=pub %} - <p class="right_aligned"> - {% if pub.doi %} - <a href="http://dx.doi.org/{{pub.doi}}">[doi]</a> - {% endif %} - {% if pub.iurl %} - <a href="{{pub.iurl}}">[paper]</a> - {% endif %} - {% if pub.downloads %} - {% for d in pub.downloads %} - <a href="{{d.url}}">[{{d.desc}}]</a> - {% endfor %} - {% endif %} - <a href="{{pub.url}}">[cite]</a> - </p> -</li></div> -{% endfor %} -</ul> -{% endfor %} diff --git a/publications/inproceedings.html b/publications/inproceedings.html @@ -6,9 +6,6 @@ keywords: menu: "pub/menu.html" --- -<p><a href="inproceedings.bib">Download all as BibTeX</a> | <a href="inproceedings.ris">Download all as RIS</a></p> -<hr/> - {% assign filtered_publications = site.publications | where:"type", "inproceedings" %} {% include pub/filtered-collection.html publications=filtered_publications showYear=true %} diff --git a/publications/thesis.html b/publications/thesis.html @@ -6,9 +6,6 @@ keywords: menu: "pub/menu.html" --- -<p><a href="thesis.bib">Download all as BibTeX</a> | <a href="thesis.ris">Download all as RIS</a></p> -<hr/> - {% assign filtered_publications_phd = site.publications | where:"type", "phdthesis" %} {% assign filtered_publications_master = site.publications | where:"type", "mastersthesis" %} {% assign filtered_publications_bachelor = site.publications | where:"type", "bachelorsthesis" %}