File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ <h1 class="content-subhead">Todos as postagens</h1>
12
12
{% for article in dates %}
13
13
< div class ="archive-item ">
14
14
< a href ="{{ SITEURL }}/{{ article.author.url }} " title ="See posts by {{ article.author }} ">
15
+ {% if article.author_gravatar %}
15
16
< img class ="avatar " alt ="{{ article.author }} " src ="{{ article.author_gravatar }} ">
17
+ {% endif %}
16
18
</ a >
17
19
< h5 class ="archive-date "> {{ article.date|strftime('%Y') }}</ h5 >
18
20
< h4 class ="archive-date "> {{ article.date|strftime('%d %B') }}</ h4 >
Original file line number Diff line number Diff line change 31
31
< header class ="header-article ">
32
32
< hgroup >
33
33
< a href ="{{ SITEURL }}/{{ article.author.url }} " title ="See posts by {{ article.author }} ">
34
- < img class ="article-avatar " alt ="{{ article.author }} " src ="{{ article.author_gravatar }} ">
34
+ {% if article.author_gravatar %}
35
+ < img class ="article-avatar " alt ="{{ article.author }} " src ="{{ article.author_gravatar }} ">
36
+ {% endif %}
35
37
</ a >
36
38
< h2 class ="article-info "> {{ article.author }}</ h2 >
37
39
< div >
Original file line number Diff line number Diff line change 1
1
< section class ="post ">
2
2
< header class ="post-header ">
3
3
< a href ="{{ SITEURL }}/{{ article.author.url }} " title ="See posts by {{ article.author }} ">
4
- < img class ="avatar " alt ="{{ article.author }} " src ="{{ article.author_gravatar }} ">
4
+ {% if article.author_gravatar %}
5
+ < img class ="avatar " alt ="{{ article.author }} " src ="{{ article.author_gravatar }} ">
6
+ {% endif %}
5
7
</ a >
6
8
< h3 > < a class ="post-title " href ="{{ SITEURL }}/{{ article.url }} "> {{ article.title }}</ a > </ h3 >
7
9
< p class ="post-meta "> {{ article.summary }}</ p >
You can’t perform that action at this time.
0 commit comments