File tree 2 files changed +5
-9
lines changed
themes/vocabulary_theme/templates/macros
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 5
5
{% set current_author = post.parent.parent.children.get('authors').children.get(author) %}
6
6
< header >
7
7
< figure class ="image blog-image ">
8
+ {% if post.author|length > = 2 %}
9
+ < img class ="profile " src ="/multiple-authors.jpg " alt ="multiple authors image "/>
10
+ {% else %}
8
11
< img class ="profile " src ="https://secure.gravatar.com/avatar/{{ current_author.md5_hashed_email }}?size=200&d=mp " alt ="gravatar " />
12
+ {% endif %}
9
13
</ figure >
10
14
</ header >
11
15
{% endif %}
Original file line number Diff line number Diff line change 4
4
{% macro render_post_summary(post, skip_gravatar=false) %}
5
5
< div class ="column is-one-third is-paddingless padding-horizontal-big padding-top-bigger ">
6
6
< article class ="card entry-post horizontal no-border blog-entry ">
7
- {% if post.author|length > = 2 %}
8
- < header >
9
- < figure class ="image blog-image ">
10
- < img class ="profile " src ="/multiple-authors.jpg " alt ="multiple authors image "/>
11
- </ figure >
12
- </ header >
13
- {% else %}
14
- {{ render_author_gravatar(post, skip_gravatar) }}
15
- {% endif %}
7
+ {{ render_author_gravatar(post, skip_gravatar) }}
16
8
< div class ="blog-content ">
17
9
< h4 class ="b-header "> < a class ="blog-title " href ="{{ post|url }} "> {{ post.title }}</ a > </ h4 >
18
10
{{ render_authors_byline(post) }}
You can’t perform that action at this time.
0 commit comments