Commit cdb671fc authored by Marcus M. Scheunemann's avatar Marcus M. Scheunemann

use tagged publications_lists, extent from `pelican-bootstrap3` page.html and...

use tagged publications_lists, extent from `pelican-bootstrap3` page.html and use other relevant formatting
parent 8b15242c
{% extends "base.html" %}
{% block title %}Publications{% endblock %}
{% extends "page.html" %}
{% block content %}
<script type="text/javascript">
......@@ -14,25 +13,40 @@
}
</script>
<section id="content" class="body">
<h1 class="entry-title">Publications</h1>
{% for tag in publications_lists %}
{% if publications_lists|length > 1 %}
<h2>{{tag}}</h2>
{% if page.title %}
<h1 class="entry-title">{{ page.title }}</h1>
{% endif %}
{% import 'includes/translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
get the pdf
</a>
{% endif %}
<div class="entry-content">
{{ page.content }}
<hr />
<ul>
{% for grouper, publist in publications|groupby('year')|reverse %}
<li> {{grouper}}
<ul>
{% for key, year, text, bibtex, pdf, slides, poster in publications_lists[tag] %}
<li id="{{ key }}">{{ text }}
[&nbsp;<a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a>&nbsp;]
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %}
{% for publication in publist %}
<li id="{{ publication.bibkey }}">{{ publication.text }}
[&nbsp;<a href="javascript:disp('{{ publication.bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a>&nbsp;]
{% for label, target in [('PDF', publication.pdf), ('Slides', publication.slides), ('Poster', publication.poster)] %}
{{ "[&nbsp;<a href=\"%s\">%s</a>&nbsp;]" % (target, label) if target }}
{% endfor %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% if page.comments == 'enabled' %}
{% include 'includes/comments.html' %}
{% endif %}
</div>
</section>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment