aboutsummaryrefslogtreecommitdiffstats
path: root/gum
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2014-09-25 00:37:55 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2014-09-25 00:37:55 +0200
commitb879f580f1fed6091edb882c399ee0810fb8e438 (patch)
tree9f30b7c37fabd596b110b1e6e07a1ee3063d5464 /gum
parentc4691d06497ed2a4265c724b93cd14a318c12bb9 (diff)
parent39c1a0cd4e44a86974ee1829a8d86e77dd2cc1df (diff)
downloadpelican-themes-b879f580f1fed6091edb882c399ee0810fb8e438.zip
pelican-themes-b879f580f1fed6091edb882c399ee0810fb8e438.tar.gz
pelican-themes-b879f580f1fed6091edb882c399ee0810fb8e438.tar.bz2
Merge pull request #236 from makefu/gum_multi_authors
Gum show multiple authors if there are any
Diffstat (limited to 'gum')
-rw-r--r--gum/templates/article.html8
-rw-r--r--gum/templates/index.html62
2 files changed, 39 insertions, 31 deletions
diff --git a/gum/templates/article.html b/gum/templates/article.html
index e6f1288..dd1cb2c 100644
--- a/gum/templates/article.html
+++ b/gum/templates/article.html
@@ -18,9 +18,11 @@
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</abbr>
- {% if article.author %}
- <address class="vcard author">
- By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
+ {% if article.authors %}
+ <address class="vcard author">By
+ {% for author in article.authors|sort %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}"> {{ author }}</a>
+ {% endfor %}
</address>
{% endif %}
</footer><!-- /.post-info -->
diff --git a/gum/templates/index.html b/gum/templates/index.html
index aae5ea5..e97e9e3 100644
--- a/gum/templates/index.html
+++ b/gum/templates/index.html
@@ -10,34 +10,40 @@
<div class="eleven columns">
- <ol id="post-list">
- {% for article in articles_page.object_list %}
- <li><article class="hentry">
- <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
- <footer class="post-info">
- <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
- {% if article.author %}<address class="vcard author">By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a></address>{% endif %}
- </footer><!-- /.post-info -->
- <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
-
- <div class="medium primary btn"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Read more <i class="icon-arrow-right"></i></a></div>
-
-
-
- <div class="row tag-row">
- {% if article.tags %}
- <span>Tagged as : </span>
- {% for tag in article.tags %}
- <a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag|e }}</a>
- {% endfor %}
- {% endif %}
- </div>
-
-
-
- </article></li>
- {% endfor %}
- </ol><!-- /#posts-list -->
+ <ol id="post-list">
+ {% for article in articles_page.object_list %}
+ <li><article class="hentry">
+ <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
+ <footer class="post-info">
+ <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
+ {% if article.authors %}
+ <address class="vcard author">By
+ {% for author in article.authors|sort %}
+ <a class="url fn" href="{{ SITEURL }}/{{ author.url }}"> {{ author }}</a>
+ {% endfor %}
+ </address>
+ {% endif %}
+ </footer><!-- /.post-info -->
+ <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
+
+ <div class="medium primary btn"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">Read more <i class="icon-arrow-right"></i></a></div>
+
+
+
+ <div class="row tag-row">
+ {% if article.tags %}
+ <span>Tagged as : </span>
+ {% for tag in article.tags %}
+ <a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag|e }}</a>
+ {% endfor %}
+ {% endif %}
+ </div>
+
+
+
+ </article></li>
+ {% endfor %}
+ </ol><!-- /#posts-list -->
</div><!-- /.eleven.columns -->