mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-04 21:46:56 +02:00
Don't render 'By' if no authors
This commit is contained in:
parent
8b4d7475ea
commit
4444f99c17
1 changed files with 2 additions and 0 deletions
2
pelican/themes/simple/templates/index.html
vendored
2
pelican/themes/simple/templates/index.html
vendored
|
|
@ -11,11 +11,13 @@
|
|||
<section>{{ article.summary }}</section>
|
||||
<footer>
|
||||
<p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p>
|
||||
{%- if article.authors %}
|
||||
<address>By
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
|
||||
{% endfor %}
|
||||
</address>
|
||||
{%- endif %}
|
||||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue