File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ date: 2015-05-15 21:01:00
5
5
description : this is what included images could look like
6
6
tags : formatting images
7
7
categories : sample-posts
8
+ thumbnail : assets/img/9.jpg
8
9
---
9
10
This is an example post with image galleries.
10
11
Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ <h2>{{ site.blog_description }}</h2>
53
53
{% assign categories = post.categories | join: "" %}
54
54
55
55
< li >
56
- < h3 >
56
+ {%- if post.thumbnail -%}
57
+ < div class ="row ">
58
+ < div class ="col-sm-9 ">
59
+ {%- endif -%}
60
+ < h3 >
57
61
{% if post.redirect == blank %}
58
62
< a class ="post-title " href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
59
63
{% else %}
95
99
{% endfor %}
96
100
{% endif %}
97
101
</ p >
102
+ {%- if post.thumbnail -%}
103
+ </ div >
104
+ < div class ="col-sm-3 ">
105
+ < img class ="card-img " src ="{{post.thumbnail | relative_url}} " style ="object-fit: cover; height: 90% " alt ="image ">
106
+ </ div >
107
+ </ div >
108
+ {%- endif -%}
98
109
</ li >
99
110
100
111
{% endfor %}
You can’t perform that action at this time.
0 commit comments