fix: Sidebar no avatar problem

If the user had a name but no avatar there would be empty image tag on the previous version
This commit is contained in:
Anıl İşcan 2023-03-23 15:32:24 +03:00 committed by GitHub
parent 0d8fce9100
commit f93e3847db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
<div class="profile-container"> <div class="profile-container">
{% if sidebar.name %} {% if sidebar.avatar %}
<img class="avatar" src="{{ site.baseurl }}/assets/images/{{ sidebar.avatar }}" alt="profile picture" /> <img class="avatar" src="{{ site.baseurl }}/assets/images/{{ sidebar.avatar }}" alt="profile picture" />
{% endif %} {% endif %}