'authors' is automaticaally populated with 'author'

This commit is contained in:
Rajan Patel 2019-01-13 02:43:59 -05:00
parent 9dbcca35a6
commit 391df8da42
2 changed files with 0 additions and 4 deletions

View file

@ -25,8 +25,6 @@
{% set auth_str = [] %}
{% for auth in article.authors %}
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, auth.url, auth)|safe) or ''}}
{% else %}
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, article.author.url, article.author)|safe) or ''}}
{% endfor %}
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
{% endif %}

View file

@ -23,8 +23,6 @@
{% set auth_str = [] %}
{% for auth in article.authors %}
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, auth.url, auth)|safe) or ''}}
{% else %}
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, article.author.url, article.author)|safe) or ''}}
{% endfor %}
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
{% endif %}