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" %} {% extends "page.html" %}
{% block title %}Publications{% endblock %}
{% block content %} {% block content %}
<script type="text/javascript"> <script type="text/javascript">
...@@ -14,25 +13,40 @@ ...@@ -14,25 +13,40 @@
} }
</script> </script>
<section id="content" class="body"> <section id="content" class="body">
<h1 class="entry-title">Publications</h1> {% if page.title %}
<h1 class="entry-title">{{ page.title }}</h1>
{% for tag in publications_lists %} {% endif %}
{% import 'includes/translations.html' as translations with context %}
{% if publications_lists|length > 1 %} {{ translations.translations_for(page) }}
<h2>{{tag}}</h2> {% if PDF_PROCESSOR %}
{% endif %} <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
get the pdf
</a>
{% endif %}
<div class="entry-content">
{{ page.content }}
<hr />
<ul> <ul>
{% for key, year, text, bibtex, pdf, slides, poster in publications_lists[tag] %} {% for grouper, publist in publications|groupby('year')|reverse %}
<li id="{{ key }}">{{ text }} <li> {{grouper}}
[&nbsp;<a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a>&nbsp;] <ul>
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} {% for publication in publist %}
{{ "[&nbsp;<a href=\"%s\">%s</a>&nbsp;]" % (target, label) if target }} <li id="{{ publication.bibkey }}">{{ publication.text }}
{% endfor %} [&nbsp;<a href="javascript:disp('{{ publication.bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a>&nbsp;]
</li> {% for label, target in [('PDF', publication.pdf), ('Slides', publication.slides), ('Poster', publication.poster)] %}
{% endfor %} {{ "[&nbsp;<a href=\"%s\">%s</a>&nbsp;]" % (target, label) if target }}
{% endfor %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul> </ul>
{% endfor %}
{% if page.comments == 'enabled' %}
{% include 'includes/comments.html' %}
{% endif %}
</div>
</section> </section>
{% endblock %}
\ No newline at end of file {% 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