Order publications by year
This commit is contained in:
parent
3fbf3a5303
commit
4705112229
1 changed files with 11 additions and 8 deletions
|
@ -27,16 +27,19 @@
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<div>
|
||||||
{% block before_content %}{% endblock %}
|
{% block before_content %}{% endblock %}
|
||||||
<ul>
|
{% for group in publications|groupby(1)|reverse %}
|
||||||
{% for key, year, text, bibtex, pdf, slides, poster in publications %}
|
<h3 id="{{ group.grouper }}">{{ group.grouper }}</h3>
|
||||||
<li id="{{ key }}">{{ text }}
|
<ul>
|
||||||
[ <a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a> ]
|
{% for key, year, text, bibtex, pdf, slides, poster in group.list %}
|
||||||
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %}
|
<li id="{{ key }}">{{ text }}
|
||||||
{{ "[ <a href=\"%s\">%s</a> ]" % (target, label) if target }}
|
[ <a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a> ]
|
||||||
|
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %}
|
||||||
|
{{ "[ <a href=\"%s\">%s</a> ]" % (target, label) if target }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</li>
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
|
||||||
{% block after_content %}{% endblock %}
|
{% block after_content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue