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:
parent
41b93f3dcc
commit
94877e033b
4 changed files with 9 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue