Skip to content

Commit

Permalink
Gum show multiple authors if there are any
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
makefu committed Jul 21, 2014
1 parent 94c2693 commit cd6d855
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 5 additions & 3 deletions gum/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ <h2 class="entry-title">
<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 -->
Expand Down
9 changes: 8 additions & 1 deletion gum/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
<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 %}

{% 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 -->

Expand Down

0 comments on commit cd6d855

Please sign in to comment.