Merge 3a79d3a2de
into 79c91d1335
This commit is contained in:
commit
d1fe40d419
3 changed files with 60 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -57,3 +57,7 @@ venv
|
|||
|
||||
# NPM
|
||||
node_modules
|
||||
|
||||
# Vim
|
||||
*~
|
||||
*.swp
|
||||
|
|
|
@ -99,12 +99,14 @@
|
|||
{% if not PAGES_SORT_ATTRIBUTE -%}
|
||||
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
||||
{%- endif %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for name, link in LINKS %}
|
||||
<li><a href="{{ link }}" target="_blank">{{ name }}</a></li>
|
||||
<li><a href="{{ link }}">{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
53
templates/publications.html
Normal file
53
templates/publications.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
<article class="single">
|
||||
<header>
|
||||
{% import 'partial/translations.html' as translations with context %}
|
||||
{{ translations.translations_for(publications) }}
|
||||
<h1 id="publications">Publications</h1>
|
||||
</header>
|
||||
<div>
|
||||
{% block before_content %}
|
||||
<p>This is a complete list of publications I have authored or co-authored.
|
||||
You can find my h-index and i10-index information at <a
|
||||
href="http://scholar.google.com/citations?user=pAfLhMoAAAAJ"
|
||||
target="_blank">Google Scholar</a>.
|
||||
</p>
|
||||
{% endblock %}
|
||||
{% for group in publications|groupby(1)|reverse %}
|
||||
<h3 id="{{ group.grouper }}">{{ group.grouper }}</h3>
|
||||
<ul>
|
||||
{% for key, year, text, bibtex, pdf, slides, poster in group.list %}
|
||||
<li id="{{ key }}">{{ text }}
|
||||
[ <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 %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
{% block after_content %}{% endblock %}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue