Commit 8b15242c authored by Marcus M. Scheunemann's avatar Marcus M. Scheunemann

setup for changes in plugin `pelican-bibtex`, iterate over tagged bibtex...

setup for changes in plugin `pelican-bibtex`, iterate over tagged bibtex entries and present in sub-sections
parent 82a9e1f5
Some testing page
#################
Publications
############
:template: publications
The following lists hsow selected peer-revieewed publications.
\ No newline at end of file
......@@ -44,7 +44,7 @@ DEFAULT_PAGINATION = 10
THEME_TEMPLATES_OVERRIDES = []
# Plugins
PLUGIN_PATHS = ['../pelican-plugins', 'plugins/', ]
PLUGIN_PATHS = ['../pelican-plugins', '../', ]
PLUGINS = ['i18n_subsites', ]
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
......@@ -57,6 +57,8 @@ JINJA_ENVIRONMENT = {
PLUGINS.append('pelican-bibtex')
THEME_TEMPLATES_OVERRIDES.append('templates/pelican-bibtex')
PUBLICATIONS_SRC = 'content/publications_marcus-scheunemann.bib'
PUBLICATIONS_SPLIT_BY = 'tags'
PUBLICATIONS_UNTAGGED_TITLE = 'Others'
##
## Theme settings: pelican-bootstrap3
......
......@@ -15,8 +15,15 @@
</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>
{% endif %}
<ul>
{% for key, year, text, bibtex, pdf, slides, poster in publications %}
{% 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)] %}
......@@ -25,5 +32,7 @@
</li>
{% endfor %}
</ul>
{% endfor %}
</section>
{% endblock %}
\ No newline at end of file
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