summaryrefslogtreecommitdiff
path: root/amber
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-03-14 15:11:23 -0700
committerelijah <elijah@riseup.net>2015-03-14 15:11:23 -0700
commit9e6656f1ca3c0aee872e359f8683255544a7b3e7 (patch)
tree0ae50b6e433afa8336f3d0091429793a860b5076 /amber
parent6399f7df915ebd9241d253603baf7ae5c1d22812 (diff)
added better display of preview image
Diffstat (limited to 'amber')
-rw-r--r--amber/layouts/_blog_summary.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/amber/layouts/_blog_summary.html.haml b/amber/layouts/_blog_summary.html.haml
index b14f6d0..58ab0d5 100644
--- a/amber/layouts/_blog_summary.html.haml
+++ b/amber/layouts/_blog_summary.html.haml
@@ -11,6 +11,9 @@
= time_tag(page.props.posted_at.to_date, :format => :long, :pubdate => true)
%div.content
- if page.props.preview
+ - if page.props.preview_image
+ .preview-img
+ %img{:src => page.props.preview_image}
= page.props.preview
- if page.props.more
= link(I18n.t(:read_more) => amber_path(page)) \ No newline at end of file