Add publications template
This commit is contained in:
parent
1b845a3db7
commit
b4b302c207
2 changed files with 43 additions and 24 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -57,3 +57,7 @@ venv
|
||||||
|
|
||||||
# NPM
|
# NPM
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
# Vim
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
|
|
@ -1,29 +1,44 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}Publications{% endblock %}
|
|
||||||
|
{% block title %} – Publications{% endblock %}
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
{{ super() }}
|
||||||
|
<script type="text/javascript">
|
||||||
|
function disp(s) {
|
||||||
|
var win;
|
||||||
|
var doc;
|
||||||
|
win = window.open("", "WINDOWID");
|
||||||
|
doc = win.document;
|
||||||
|
doc.open("text/plain");
|
||||||
|
doc.write("<pre>" + s + "</pre>");
|
||||||
|
doc.close();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<script type="text/javascript">
|
<article class="single">
|
||||||
function disp(s) {
|
<header>
|
||||||
var win;
|
{% import 'partial/translations.html' as translations with context %}
|
||||||
var doc;
|
{{ translations.translations_for(publications) }}
|
||||||
win = window.open("", "WINDOWID");
|
<h1 id="publications">Publications</h1>
|
||||||
doc = win.document;
|
</header>
|
||||||
doc.open("text/plain");
|
<div>
|
||||||
doc.write("<pre>" + s + "</pre>");
|
{% block before_content %}{% endblock %}
|
||||||
doc.close();
|
<ul>
|
||||||
}
|
{% for key, year, text, bibtex, pdf, slides, poster in publications %}
|
||||||
</script>
|
<li id="{{ key }}">{{ text }}
|
||||||
<section id="content" class="body">
|
[ <a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a> ]
|
||||||
<h1 class="entry-title">Publications</h1>
|
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %}
|
||||||
<ul>
|
{{ "[ <a href=\"%s\">%s</a> ]" % (target, label) if target }}
|
||||||
{% for key, year, text, bibtex, pdf, slides, poster in publications %}
|
{% endfor %}
|
||||||
<li id="{{ key }}">{{ text }}
|
</li>
|
||||||
[ <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>
|
</ul>
|
||||||
{% endfor %}
|
{% block after_content %}{% endblock %}
|
||||||
</ul>
|
</div>
|
||||||
</section>
|
</article>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue