Skip to content

Commit 658ddfc

Browse files
committed
update default avatar
1 parent ecf6777 commit 658ddfc

File tree

6 files changed

+17
-55
lines changed

6 files changed

+17
-55
lines changed

content/blank_profile.svg

-10
This file was deleted.

themes/vocabulary_theme/templates/author.html

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
<div class="container">
1212
<div class="columns">
1313
<div class="column is-2">
14-
{% if this.about %}
15-
{% if this.md5_hashed_email %}
16-
<figure class="image profile">
17-
<img class="profile" src="https://secure.gravatar.com/avatar/{{ this.md5_hashed_email }}?size=200">
18-
</figure>
19-
{% endif %}
20-
{% endif %}
14+
<figure class="image profile">
15+
<img class="profile" src="https://secure.gravatar.com/avatar/{{ this.md5_hashed_email }}?size=200&d=mp" alt="gravatar">
16+
</figure>
2117
</div>
2218
<div class="column is-8">
2319
<h2>{{ render_author_name(this) }}</h2>

themes/vocabulary_theme/templates/blocks/recent-posts.html

+5-13
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,11 @@ <h2 class="is-paddingless level-left">
1717
<div class="column is-one-third is-paddingless padding-horizontal-big padding-top-bigger">
1818
<article class="card entry-post horizontal no-border blog-entry">
1919
{% if author.about %}
20-
{% if author.md5_hashed_email %}
21-
<header>
22-
<figure class="image blog-image">
23-
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200" alt="gravatar" />
24-
</figure>
25-
</header>
26-
{% else %}
27-
<header>
28-
<figure class="image blog-image">
29-
<img class="profile" src="./blank_profile.svg" alt="gravatar" />
30-
</figure>
31-
</header>
32-
{% endif %}
20+
<header>
21+
<figure class="image blog-image">
22+
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200&d=mp" alt="gravatar" />
23+
</figure>
24+
</header>
3325
{% endif %}
3426
</header>
3527
<div class="blog-content">

themes/vocabulary_theme/templates/blog-post.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ <h4>CC Open Source Blog</h4>
1616
<h2 class="title">{{ this.title }}</h2>
1717
{{ check_file('content' + this.parent.parent.path + '/authors/' + this.author + '/contents.lr') }}
1818
<div class="author columns is-marginless">
19-
{% if author.md5_hashed_email %}
20-
<figure class="image profile">
21-
<img src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200" alt="gravatar" class="profile" />
22-
</figure>
23-
{% endif %}
19+
<figure class="image profile">
20+
<img src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200&d=mp" alt="gravatar" class="profile" />
21+
</figure>
2422
<p class="column">by <a href="{{ author|url }}">{{ render_author_name(author) }}</a>
2523
on {{ this.pub_date|dateformat("YYYY-MM-dd") }}</p>
2624
</div>

themes/vocabulary_theme/templates/macros/authors.html

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33
{% macro render_authors(authors) %}
44
{% for author in site.query(authors.path) %}
55
<div class="author column is-6-mobile is-2-desktop">
6-
{% if author.md5_hashed_email %}
7-
<figure class="image profile">
8-
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200" alt="gravatar" />
9-
</figure>
10-
{% else %}
116
<figure class="image profile">
12-
<img class="profile" src="../../../blank_profile.svg" alt="gravatar" />
7+
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200&d=mp" alt="gravatar" />
138
</figure>
14-
{% endif %}
159
<div class="author-name">
1610
<h5 class="desktop b-header"><a class="link" href="{{ author|url }}">{{ render_author_name(author) }}</a></h5>
1711
<h6 class="mobile b-header"><a class="link" href="{{ author|url }}">{{ render_author_name(author) }}</a></h6>

themes/vocabulary_theme/templates/macros/posts.html

+5-13
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,11 @@
77
<div class="column is-one-third">
88
<article class="card entry-post horizontal no-border blog-entry">
99
{% if author.about %}
10-
{% if author.md5_hashed_email %}
11-
<header>
12-
<figure class="image blog-image">
13-
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200" alt="gravatar" />
14-
</figure>
15-
</header>
16-
{% else %}
17-
<header>
18-
<figure class="image blog-image">
19-
<img class="profile" src="../../../blank_profile.svg" alt="gravatar" />
20-
</figure>
21-
</header>
22-
{% endif %}
10+
<header>
11+
<figure class="image blog-image">
12+
<img class="profile" src="https://secure.gravatar.com/avatar/{{ author.md5_hashed_email }}?size=200&d=mp" alt="gravatar" />
13+
</figure>
14+
</header>
2315
{% endif %}
2416
<div class="blog-content">
2517
<h4 class="b-header"><a class="blog-title" href="{{ post|url }}">{{ post.title }}</a></h4>

0 commit comments

Comments
 (0)