check variable author_description
This commit is contained in:
parent
6188ba81a0
commit
fef9c778ed
@ -40,6 +40,7 @@
|
||||
{% if include_author %}
|
||||
{% set author_description = info['author'] %}
|
||||
{% set AUTHOR_DESC_LENGTH = 35 %}
|
||||
{% if author_description != None %}
|
||||
{% if author_description|length >= AUTHOR_DESC_LENGTH %}
|
||||
{% set author_description = author_description[:AUTHOR_DESC_LENGTH].split(' ')[:-1]|join(' ') %}
|
||||
{% if not author_description[-1] in ['.', '?', ':', '!'] %}
|
||||
@ -47,6 +48,7 @@
|
||||
{% set author_description = author_more|replace('"','') %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if info.get('author_url') %}
|
||||
<address title="{{ info['author'] }}"><b><a href="{{ info['author_url'] }}">{{ author_description }}</a></b></address>
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user