Skip to content

Commit

Permalink
author's name gets link only if AUTHORS_SAVE_AS is set.
Browse files Browse the repository at this point in the history
There seems to be no point in linking to the author's index page listing all
articles of that author if there is only one author. If the pelican
configuration states that no overview page of all authors should be generated
we can assume only one author exists and thus not link the author's name in the
article footer.
  • Loading branch information
mstreuhofer committed Jan 3, 2015
1 parent 9f36da0 commit 6d19ef5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/_includes/article_infos.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<p class="meta">
<span class="byline author vcard">
Posted by <span class="fn">
<a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
{% if AUTHORS_SAVE_AS %}
<a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
{% else %}
{{ article.author }}
{% endif %}
</span>
</span>
{% include '_includes/article_time.html' %}
Expand Down

0 comments on commit 6d19ef5

Please sign in to comment.