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 :template: publications
\ No newline at end of file
The following lists hsow selected peer-revieewed publications.
\ No newline at end of file
...@@ -44,7 +44,7 @@ DEFAULT_PAGINATION = 10 ...@@ -44,7 +44,7 @@ DEFAULT_PAGINATION = 10
THEME_TEMPLATES_OVERRIDES = [] THEME_TEMPLATES_OVERRIDES = []
# Plugins # Plugins
PLUGIN_PATHS = ['../pelican-plugins', 'plugins/', ] PLUGIN_PATHS = ['../pelican-plugins', '../', ]
PLUGINS = ['i18n_subsites', ] PLUGINS = ['i18n_subsites', ]
JINJA_ENVIRONMENT = { JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'], 'extensions': ['jinja2.ext.i18n'],
...@@ -57,6 +57,8 @@ JINJA_ENVIRONMENT = { ...@@ -57,6 +57,8 @@ JINJA_ENVIRONMENT = {
PLUGINS.append('pelican-bibtex') PLUGINS.append('pelican-bibtex')
THEME_TEMPLATES_OVERRIDES.append('templates/pelican-bibtex') THEME_TEMPLATES_OVERRIDES.append('templates/pelican-bibtex')
PUBLICATIONS_SRC = 'content/publications_marcus-scheunemann.bib' PUBLICATIONS_SRC = 'content/publications_marcus-scheunemann.bib'
PUBLICATIONS_SPLIT_BY = 'tags'
PUBLICATIONS_UNTAGGED_TITLE = 'Others'
## ##
## Theme settings: pelican-bootstrap3 ## Theme settings: pelican-bootstrap3
......
...@@ -15,15 +15,24 @@ ...@@ -15,15 +15,24 @@
</script> </script>
<section id="content" class="body"> <section id="content" class="body">
<h1 class="entry-title">Publications</h1> <h1 class="entry-title">Publications</h1>
<ul>
{% for key, year, text, bibtex, pdf, slides, poster in publications %} {% for tag in publications_lists %}
<li id="{{ key }}">{{ text }}
[&nbsp;<a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a>&nbsp;] {% if publications_lists|length > 1 %}
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} <h2>{{tag}}</h2>
{{ "[&nbsp;<a href=\"%s\">%s</a>&nbsp;]" % (target, label) if target }} {% endif %}
{% endfor %}
</li> <ul>
{% endfor %} {% for key, year, text, bibtex, pdf, slides, poster in publications_lists[tag] %}
</ul> <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)] %}
{{ "[&nbsp;<a href=\"%s\">%s</a>&nbsp;]" % (target, label) if target }}
{% endfor %}
</li>
{% endfor %}
</ul>
{% endfor %}
</section> </section>
{% endblock %} {% 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