File tree 3 files changed +3
-15
lines changed
3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ <h3 class="entry-title">
10
10
< a href ="{{ post.url | relative_url }} " rel ="bookmark "> {{ title }}</ a >
11
11
</ h3 >
12
12
{% if post.image.thumbnail %}
13
- {% assign entry_image = post.image.thumbnail %}
14
- {% unless entry_image contains '://' %}
15
- {% assign entry_image = entry_image | relative_url %}
16
- {% endunless %}
17
- {% assign entry_image = entry_image | escape %}
13
+ {% assign entry_image = post.image.thumbnail | relative_url | escape %}
18
14
< img class ="entry-image u-photo " src ="{{ entry_image }} " alt ="">
19
15
{% endif %}
20
16
</ header >
Original file line number Diff line number Diff line change 1
- {% if site.logo contains '://' %}
2
- {% assign site_logo = site.logo %}
3
- {% else %}
4
- {% assign site_logo = site.logo | relative_url %}
5
- {% endif %}
1
+ {% assign site_logo = site.logo | relative_url %}
6
2
7
3
< header id ="masthead ">
8
4
< div class ="inner ">
Original file line number Diff line number Diff line change 1
1
< header class ="intro ">
2
2
{% if page.image %}
3
- {% assign intro_image = page.image.path | default: page.image %}
4
- {% unless intro_image contains '://' %}
5
- {% assign intro_image = intro_image | relative_url %}
6
- {% endunless %}
7
- {% assign intro_image = intro_image | escape %}
3
+ {% assign intro_image = page.image.path | default: page.image | relative_url | escape %}
8
4
< div class ="intro-image ">
9
5
< img src ="{{ intro_image }} " alt ="{{ page.title }} ">
10
6
</ div >
You can’t perform that action at this time.
0 commit comments