1
0
Fork 0
forked from github/pelican

So that Authors display and output can be disabled for single user sites, allow the AUTHOR setting to be set to an empty string ''.

An author is needed, but was defaults to OS user, or 'John Doe'. If a blank author is provided, it generated authors/.html file, and templates display just "by "
Updated generators.py and templates to ignore Authors objects which have a blank name
This commit is contained in:
Brendan Wholihan 2012-10-18 19:55:00 +01:00
commit 94877e033b
4 changed files with 9 additions and 8 deletions

View file

@ -10,7 +10,7 @@
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</abbr>
{% if article.author %}
{% if article.author.name %}
<address class="vcard author">
By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
</address>