diff options
Diffstat (limited to 'blog/_includes')
-rw-r--r-- | blog/_includes/news.html | 6 | ||||
-rw-r--r-- | blog/_includes/post-excerpt.html | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/blog/_includes/news.html b/blog/_includes/news.html index a8daaeb..e9f6138 100644 --- a/blog/_includes/news.html +++ b/blog/_includes/news.html @@ -2,7 +2,11 @@ <h2>{% t home.latest_news %}</h2> {% for p in site.posts limit: 5 %} {% if p != page %} - {% include post-excerpt.html post=p %} + {% if include.sidebar %} + {% include post-excerpt.html post=p sidebar=true %} + {% else %} + {% include post-excerpt.html post=p %} + {% endif %} {% endif %} {% endfor %} </section> diff --git a/blog/_includes/post-excerpt.html b/blog/_includes/post-excerpt.html index 52704e7..e87b12b 100644 --- a/blog/_includes/post-excerpt.html +++ b/blog/_includes/post-excerpt.html @@ -3,10 +3,13 @@ {% include post-header.html post = post %} <section class="post-body"> {% if post.page-image %} - {{ post.page-image | img: "magick:resize:290x" }} + {% if include.sidebar %} + {{ post.page-image | img: "magick:resize:290x" }} + {% else %} + {{ post.page-image | img: "magick:resize:290x class:right" }} + {% endif %} {% endif %} {{ post.excerpt }} - <p><a href="{{ post.url | prepend: site.baseurl }}">{% t global.read_more %}</a></p> </section> </article> |