Skip to content

Commit

Permalink
Merge pull request #778 from Kirsty21/main
Browse files Browse the repository at this point in the history
Improve multi-author support PR
  • Loading branch information
TimidRobot authored Apr 16, 2024
2 parents b3e0d4e + ebad357 commit 3953177
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file added content/multiple-authors.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion themes/vocabulary_theme/templates/macros/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
{% macro render_post_summary(post, skip_gravatar=false) %}
<div class="column is-one-third is-paddingless padding-horizontal-big padding-top-bigger">
<article class="card entry-post horizontal no-border blog-entry">
{{ render_author_gravatar(post, skip_gravatar) }}
{% if post.author|length >= 2 %}
<header>
<figure class="image blog-image">
<img class="profile" src="/multiple-authors.jpg" alt="multiple authors image"/>
</figure>
</header>
{% else %}
{{ render_author_gravatar(post, skip_gravatar) }}
{% endif %}
<div class="blog-content">
<h4 class="b-header"><a class="blog-title" href="{{ post|url }}">{{ post.title }}</a></h4>
{{ render_authors_byline(post) }}
Expand Down

0 comments on commit 3953177

Please sign in to comment.