From 9f8c9fa092007cbfad096274b0fc84bce508775f Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 16:53:15 +0200 Subject: [PATCH 1/6] Support DISPLAY_PAGES_ON_MENU --- templates/base.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/base.html b/templates/base.html index 105a236..3069e58 100644 --- a/templates/base.html +++ b/templates/base.html @@ -99,9 +99,11 @@ {% 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) %}
  • {{ page.title }}
  • {% endfor %} + {% endif %} {% for name, link in LINKS %}
  • {{ name }}
  • From 1b845a3db72afbe60cf909925df34ff40d5df6cc Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 17:01:05 +0200 Subject: [PATCH 2/6] Add publications template --- templates/publications.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/publications.html diff --git a/templates/publications.html b/templates/publications.html new file mode 100644 index 0000000..a91ef94 --- /dev/null +++ b/templates/publications.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block title %}Publications{% endblock %} +{% block content %} + + +
    +

    Publications

    +
      + {% for key, year, text, bibtex, pdf, slides, poster in publications %} +
    • {{ text }} + [ Bibtex ] + {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} + {{ "[ %s ]" % (target, label) if target }} + {% endfor %} +
    • + {% endfor %} +
    +
    +{% endblock %} From b4b302c207fa6a2251a48b7595c4537d49c39fc6 Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 17:12:04 +0200 Subject: [PATCH 3/6] Add publications template --- .gitignore | 4 +++ templates/publications.html | 63 +++++++++++++++++++++++-------------- 2 files changed, 43 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index fa79f58..db97973 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,7 @@ venv # NPM node_modules + +# Vim +*~ +*.swp diff --git a/templates/publications.html b/templates/publications.html index a91ef94..7086a61 100644 --- a/templates/publications.html +++ b/templates/publications.html @@ -1,29 +1,44 @@ {% extends "base.html" %} -{% block title %}Publications{% endblock %} + +{% block title %} – Publications{% endblock %} + +{% block meta %} + {{ super() }} + +{% endblock %} + {% block content %} - -
    -

    Publications

    -
      - {% for key, year, text, bibtex, pdf, slides, poster in publications %} -
    • {{ text }} - [ Bibtex ] - {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} - {{ "[ %s ]" % (target, label) if target }} +
      +
      + {% import 'partial/translations.html' as translations with context %} + {{ translations.translations_for(publications) }} +

      Publications

      +
      +
      + {% block before_content %}{% endblock %} +
        + {% for key, year, text, bibtex, pdf, slides, poster in publications %} +
      • {{ text }} + [ Bibtex ] + {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} + {{ "[ %s ]" % (target, label) if target }} + {% endfor %} +
      • {% endfor %} - - {% endfor %} -
      -
    + + {% block after_content %}{% endblock %} + + + {% endblock %} From 3fbf3a5303516efe912a2682738c9d29ea482e6b Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 17:55:20 +0200 Subject: [PATCH 4/6] Don't open a new window for the links --- templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 3069e58..8844f2b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -106,7 +106,7 @@ {% endif %} {% for name, link in LINKS %} -
  • {{ name }}
  • +
  • {{ name }}
  • {% endfor %} From 4705112229ee80dd6480b8ef04174de01c7591f0 Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 18:32:40 +0200 Subject: [PATCH 5/6] Order publications by year --- templates/publications.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/templates/publications.html b/templates/publications.html index 7086a61..b335b12 100644 --- a/templates/publications.html +++ b/templates/publications.html @@ -27,16 +27,19 @@
    {% block before_content %}{% endblock %} -
      - {% for key, year, text, bibtex, pdf, slides, poster in publications %} -
    • {{ text }} - [ Bibtex ] - {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} - {{ "[ %s ]" % (target, label) if target }} + {% for group in publications|groupby(1)|reverse %} +

      {{ group.grouper }}

      +
        + {% for key, year, text, bibtex, pdf, slides, poster in group.list %} +
      • {{ text }} + [ Bibtex ] + {% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %} + {{ "[ %s ]" % (target, label) if target }} {% endfor %} -
      • + + {% endfor %} +
      {% endfor %} -
    {% block after_content %}{% endblock %}
    From 3a79d3a2de40a861121cee8b2869762ca616d135 Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 23:00:07 +0200 Subject: [PATCH 6/6] Add intro paragraph --- templates/publications.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/publications.html b/templates/publications.html index b335b12..c3e4a59 100644 --- a/templates/publications.html +++ b/templates/publications.html @@ -26,7 +26,13 @@

    Publications

    - {% block before_content %}{% endblock %} + {% block before_content %} +

    This is a complete list of publications I have authored or co-authored. + You can find my h-index and i10-index information at Google Scholar. +

    + {% endblock %} {% for group in publications|groupby(1)|reverse %}

    {{ group.grouper }}