Fix no author img

Signed-off-by: Nistor Cristian <contact@nistorcristian.com>
This commit is contained in:
Nistor Cristian 2020-04-20 12:36:32 +03:00
parent e37c4c23f7
commit f641f1837d
No known key found for this signature in database
GPG Key ID: E0B6FBD6EB95AAB1
1 changed files with 9 additions and 3 deletions

View File

@ -20,9 +20,15 @@
<ul class="authors">
{{#foreach authors}}
<li>
<a href="{{url}}" data-toggle="tooltip" data-placement="top" title="{{name}}">
<img src="{{img_url profile_image}}" alt="{{name}}" />
</a>
{{#if profile_image}}
<a href="{{url}}" data-toggle="tooltip" data-placement="top" title="{{name}}">
<img src="{{img_url profile_image}}" alt="{{name}}" />
</a>
{{else}}
<a href="{{url}}">
{{name}}
</a>
{{/if}}
</li>
{{/foreach}}
</ul>