Skip to content

Commit

Permalink
Added support for local author avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jun 1, 2024
1 parent 2412a1b commit 0fc36a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion material/templates/blog-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% for author in page.authors %}
<div class="md-profile md-post__profile">
<span class="md-author md-author--long">
<img src="{{ author.avatar }}" alt="{{ author.name }}">
<img src="{{ author.avatar | url }}" alt="{{ author.name }}">
</span>
<span class="md-profile__description">
<strong>
Expand Down
2 changes: 1 addition & 1 deletion material/templates/partials/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<nav class="md-post__authors md-typeset">
{% for author in post.authors %}
<span class="md-author">
<img src="{{ author.avatar }}" alt="{{ author.name }}">
<img src="{{ author.avatar | url }}" alt="{{ author.name }}">
</span>
{% endfor %}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/blog-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{% for author in page.authors %}
<div class="md-profile md-post__profile">
<span class="md-author md-author--long">
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
</span>
<span class="md-profile__description">
<strong>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/partials/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<nav class="md-post__authors md-typeset">
{% for author in post.authors %}
<span class="md-author">
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
</span>
{% endfor %}
</nav>
Expand Down

0 comments on commit 0fc36a1

Please sign in to comment.