Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
(cherry picked from commit a021f7d)
  • Loading branch information
dogle-scottlogic committed Nov 18, 2024
1 parent 11e84ee commit 4f215ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion _includes/author_picture.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% if author.picture %}
{% if post.author %}
{% if author-id %}
<img
src="{{ site.baseurl }}/{{ author-id }}/{{ author.picture }}"
role="presentation"
alt="{{ author.name }}"
/>
{% elsif post.author %}
<img
src="{{ site.baseurl }}/{{ post.author }}/{{ author.picture }}"
role="presentation"
Expand Down
2 changes: 1 addition & 1 deletion _includes/author_summary.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% assign author-id = include.author-id %}
{% assign author = site.data.authors.authors[author-id] %}
<div class="author-information cell">
<img src="{{ site.baseurl }}/{{ author-id }}/{{ author.picture }}" alt="{{ author.name }}"/>
{% include author_picture.html author-id=author-id %}
<a rel="author" href="{{ site.baseurl }}/{{ author-id }}">{{ author.name }}</a>
</div>
<div class="cell">
Expand Down

0 comments on commit 4f215ea

Please sign in to comment.