From cd6d85592b4eedc190057a5db297aaef47bfbf4a Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 21 Jul 2014 21:27:37 +0200 Subject: Gum show multiple authors if there are any until pelican rev 8e897ea it is possible to have multiple authors for a post. This patch implements the visualization of multiple authors for the gum theme. --- gum/templates/article.html | 8 +++++--- gum/templates/index.html | 9 ++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'gum') diff --git a/gum/templates/article.html b/gum/templates/article.html index 15188d0..f050118 100644 --- a/gum/templates/article.html +++ b/gum/templates/article.html @@ -18,9 +18,11 @@ {{ article.locale_date }} - {% if article.author %} -
- By {{ article.author }} + {% if article.authors %} +
By + {% for author in article.authors|sort %} + {{ author }} + {% endfor %}
{% endif %} diff --git a/gum/templates/index.html b/gum/templates/index.html index aae5ea5..338f7e0 100644 --- a/gum/templates/index.html +++ b/gum/templates/index.html @@ -16,7 +16,14 @@

{{ article.title }}

{{ article.locale_date }} - {% if article.author %}
By {{ article.author }}
{% endif %} + + {% if article.authors %} +
By + {% for author in article.authors|sort %} + {{ author }} + {% endfor %} +
+ {% endif %}
{{ article.summary }}
-- cgit v1.1 From 98a554cfdc3838ef57a0df272d1822a72e0899f5 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 21 Jul 2014 21:59:24 +0200 Subject: gum: fix indentation in index.html add indentation spaces which were missing due to copy-paste editing --- gum/templates/index.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'gum') diff --git a/gum/templates/index.html b/gum/templates/index.html index 338f7e0..d762a53 100644 --- a/gum/templates/index.html +++ b/gum/templates/index.html @@ -16,14 +16,13 @@

{{ article.title }}

{{ article.locale_date }} - - {% if article.authors %} -
By - {% for author in article.authors|sort %} - {{ author }} - {% endfor %} -
- {% endif %} + {% if article.authors %} +
By + {% for author in article.authors|sort %} + {{ author }} + {% endfor %} +
+ {% endif %}
{{ article.summary }}
-- cgit v1.1 From 39c1a0cd4e44a86974ee1829a8d86e77dd2cc1df Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 21 Jul 2014 22:05:01 +0200 Subject: gum: retab index.html tabs and spaces were mixed in index.html, retabbed to spaces-only with tabstop=4 --- gum/templates/index.html | 68 ++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'gum') diff --git a/gum/templates/index.html b/gum/templates/index.html index d762a53..e97e9e3 100644 --- a/gum/templates/index.html +++ b/gum/templates/index.html @@ -10,40 +10,40 @@
-
    - {% for article in articles_page.object_list %} -
  1. -

    {{ article.title }}

    -
    - {{ article.locale_date }} - {% if article.authors %} -
    By - {% for author in article.authors|sort %} - {{ author }} - {% endfor %} -
    - {% endif %} -
    -
    {{ article.summary }}
    - - - - - -
    - {% if article.tags %} - Tagged as : - {% for tag in article.tags %} - {{ tag|e }} - {% endfor %} - {% endif %} -
    - - - -
  2. - {% endfor %} -
+
    + {% for article in articles_page.object_list %} +
  1. +

    {{ article.title }}

    +
    + {{ article.locale_date }} + {% if article.authors %} +
    By + {% for author in article.authors|sort %} + {{ author }} + {% endfor %} +
    + {% endif %} +
    +
    {{ article.summary }}
    + + + + + +
    + {% if article.tags %} + Tagged as : + {% for tag in article.tags %} + {{ tag|e }} + {% endfor %} + {% endif %} +
    + + + +
  2. + {% endfor %} +
-- cgit v1.1