'authors' is automaticaally populated with 'author'
This commit is contained in:
parent
9dbcca35a6
commit
391df8da42
2 changed files with 0 additions and 4 deletions
|
@ -25,8 +25,6 @@
|
||||||
{% set auth_str = [] %}
|
{% set auth_str = [] %}
|
||||||
{% for auth in article.authors %}
|
{% for auth in article.authors %}
|
||||||
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, auth.url, auth)|safe) or ''}}
|
{{ 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 %}
|
{% endfor %}
|
||||||
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
|
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
{% set auth_str = [] %}
|
{% set auth_str = [] %}
|
||||||
{% for auth in article.authors %}
|
{% for auth in article.authors %}
|
||||||
{{ auth_str.append('<a href="%s/%s">%s</a>'|format(SITEURL, auth.url, auth)|safe) or ''}}
|
{{ 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 %}
|
{% endfor %}
|
||||||
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
|
{% set auth_str = ' by ' ~ auth_str|join(', ') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue