Added support for local author avatars

This commit is contained in:
squidfunk 2024-06-01 11:57:35 +01:00
parent 2412a1b7bc
commit 0fc36a1f4c
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@
{% for author in page.authors %} {% for author in page.authors %}
<div class="md-profile md-post__profile"> <div class="md-profile md-post__profile">
<span class="md-author md-author--long"> <span class="md-author md-author--long">
<img src="{{ author.avatar }}" alt="{{ author.name }}"> <img src="{{ author.avatar | url }}" alt="{{ author.name }}">
</span> </span>
<span class="md-profile__description"> <span class="md-profile__description">
<strong> <strong>

View File

@ -7,7 +7,7 @@
<nav class="md-post__authors md-typeset"> <nav class="md-post__authors md-typeset">
{% for author in post.authors %} {% for author in post.authors %}
<span class="md-author"> <span class="md-author">
<img src="{{ author.avatar }}" alt="{{ author.name }}"> <img src="{{ author.avatar | url }}" alt="{{ author.name }}">
</span> </span>
{% endfor %} {% endfor %}
</nav> </nav>

View File

@ -56,7 +56,7 @@
{% for author in page.authors %} {% for author in page.authors %}
<div class="md-profile md-post__profile"> <div class="md-profile md-post__profile">
<span class="md-author md-author--long"> <span class="md-author md-author--long">
<img src="{{ author.avatar }}" alt="{{ author.name }}" /> <img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
</span> </span>
<span class="md-profile__description"> <span class="md-profile__description">
<strong> <strong>

View File

@ -29,7 +29,7 @@
<nav class="md-post__authors md-typeset"> <nav class="md-post__authors md-typeset">
{% for author in post.authors %} {% for author in post.authors %}
<span class="md-author"> <span class="md-author">
<img src="{{ author.avatar }}" alt="{{ author.name }}" /> <img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
</span> </span>
{% endfor %} {% endfor %}
</nav> </nav>