diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2016-10-03 17:13:41 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2016-10-03 17:13:41 +0200 |
commit | 7dea54fb6e03afb6696c8a36e3af8bb27770eab3 (patch) | |
tree | 6d9caf689186c5e4edbac40c8ba53b2e51829542 /blog/_includes/post-excerpt.html | |
parent | eec3fd64a25cf264b96223011208f186d744993e (diff) | |
download | norsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.tar.gz norsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.tar.bz2 norsk-urskog-main-7dea54fb6e03afb6696c8a36e3af8bb27770eab3.zip |
Better rendering of the news feed the various places it's used.
Diffstat (limited to 'blog/_includes/post-excerpt.html')
-rw-r--r-- | blog/_includes/post-excerpt.html | 7 |
1 files changed, 5 insertions, 2 deletions
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> |