fix thumbnail display

This commit is contained in:
Ayo 2018-02-06 17:10:22 +08:00
parent 341819232b
commit 6e42e8b57b
2 changed files with 6 additions and 3 deletions

View file

@ -21,9 +21,9 @@ layout: default-home
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h3>
<div class="float-left post-excerpt">
<img class="float-right post-thumb" src="../assets/images/{{ post.image }}" />
{{ post.excerpt }}
</div>
<img class="float-left post-thumb" src="../assets/images/{{ post.image }}" />
<div class="clear-both"></div>
<div class="post-readmore">
<a href="{{ post.url | relative_url }}" class="button">Continue Reading</a>

View file

@ -159,16 +159,19 @@ article .post-content p {
float: left;
}
.float-right {
float: right;
}
.clear-both {
clear: both;
}
.post-excerpt {
width: 70%;
}
.post-thumb {
width: 30%;
width: 40%;
}
.post-readmore {