File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
28
28
29
29
< p > < a href ="{{ post.url }} "> Continue Reading...</ a > </ p >
30
30
31
- < p class ="post-info "> Posted by {{ post.author }} on {{ post.date | date_to_string }}</ p >
31
+ {% if post.author and post.author != "" %}
32
+ < p class ="post-info "> {{ post.author }} – {{ post.date | date_to_string }}</ p >
33
+ {% else %}
34
+ < p class ="post-info "> {{ post.date | date_to_string }}</ p >
35
+ {% endif %}
32
36
</ div >
33
37
{% endfor %}
34
38
</ div >
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
22
22
23
23
< p > < a href ="{{ post.url }} "> Continue Reading...</ a > </ p >
24
24
25
- < p class ="post-info "> Posted by {{ post.author }} on {{ post.date | date_to_string }}</ p >
25
+ {% if post.author and post.author != "" %}
26
+ < p class ="post-info "> {{ post.author }} – {{ post.date | date_to_string }}</ p >
27
+ {% else %}
28
+ < p class ="post-info "> {{ post.date | date_to_string }}</ p >
29
+ {% endif %}
26
30
</ div >
27
31
{% endfor %}
28
32
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
22
22
23
23
< p > < a href ="{{ post.url }} "> Continue Reading...</ a > </ p >
24
24
25
- < p class ="post-info "> Posted by {{ post.author }} on {{ post.date | date_to_string }}</ p >
25
+ {% if post.author and post.author != "" %}
26
+ < p class ="post-info "> {{ post.author }} – {{ post.date | date_to_string }}</ p >
27
+ {% else %}
28
+ < p class ="post-info "> {{ post.date | date_to_string }}</ p >
29
+ {% endif %}
26
30
</ div >
27
31
{% endfor %}
28
32
</ div >
You can’t perform that action at this time.
0 commit comments