webseite-grav/plugins/admin/themes/grav/templates/partials/nav-user-avatar.html.twig

3 lines
175 B
Twig
Raw Normal View History

2021-04-30 11:23:26 +02:00
{% set user_avatar = admin.user.getAvatarUrl() %}
<img src="{{ ('?' not in user_avatar) and (not user_avatar starts with 'data:') ? user_avatar ~ '?s=80' : user_avatar }}" />