diff options
-rw-r--r-- | blog/_includes/post-excerpt.html | 3 | ||||
-rw-r--r-- | blog/_layouts/post.html | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/blog/_includes/post-excerpt.html b/blog/_includes/post-excerpt.html index 125e984..52704e7 100644 --- a/blog/_includes/post-excerpt.html +++ b/blog/_includes/post-excerpt.html @@ -2,6 +2,9 @@ <article class="post"> {% include post-header.html post = post %} <section class="post-body"> + {% if post.page-image %} + {{ post.page-image | img: "magick:resize:290x" }} + {% endif %} {{ post.excerpt }} <p><a href="{{ post.url | prepend: site.baseurl }}">{% t global.read_more %}</a></p> diff --git a/blog/_layouts/post.html b/blog/_layouts/post.html index cb33296..555bdc6 100644 --- a/blog/_layouts/post.html +++ b/blog/_layouts/post.html @@ -5,6 +5,9 @@ layout: default <article class="post"> {% include post-header.html post = page %} <section class="post-body"> + {% if page.page-image %} + {{ page.page-image | img: "magick:resize:590x" }} + {% endif %} {{ content }} </section> <footer> |