summaryrefslogtreecommitdiffstats
path: root/blog/_includes/post-excerpt.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-03-10 19:28:51 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-03-10 19:28:51 +0100
commit7603cecd364eb04fe6eac75971107796171287ef (patch)
tree365ca4077c408c45da535cacd98eeefb8464cc58 /blog/_includes/post-excerpt.html
parent87cd103c98265adc2a0cb256b14cd7b1d2d8e543 (diff)
parent0cb9284d51b16d192f42e2d2a4c12a2911668b2e (diff)
downloadnorsk-urskog-main-7603cecd364eb04fe6eac75971107796171287ef.tar.gz
norsk-urskog-main-7603cecd364eb04fe6eac75971107796171287ef.tar.bz2
norsk-urskog-main-7603cecd364eb04fe6eac75971107796171287ef.zip
Merge branch 'responsive-design'
Diffstat (limited to 'blog/_includes/post-excerpt.html')
-rw-r--r--blog/_includes/post-excerpt.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/blog/_includes/post-excerpt.html b/blog/_includes/post-excerpt.html
index e87b12b..b3616d8 100644
--- a/blog/_includes/post-excerpt.html
+++ b/blog/_includes/post-excerpt.html
@@ -1,13 +1,11 @@
{% assign post = include.post %}
-<article class="post">
+<article class="post-excerpt">
{% include post-header.html post = post %}
<section class="post-body">
{% if post.page-image %}
- {% if include.sidebar %}
+ <div class="post-image">
{{ post.page-image | img: "magick:resize:290x" }}
- {% else %}
- {{ post.page-image | img: "magick:resize:290x class:right" }}
- {% endif %}
+ </div>
{% endif %}
{{ post.excerpt }}
<p><a href="{{ post.url | prepend: site.baseurl }}">{% t global.read_more %}</a></p>