summaryrefslogtreecommitdiff
path: root/amber/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'amber/layouts')
-rw-r--r--amber/layouts/_blog_summary.html.haml9
1 files changed, 6 insertions, 3 deletions
diff --git a/amber/layouts/_blog_summary.html.haml b/amber/layouts/_blog_summary.html.haml
index 58ab0d5..b4a7308 100644
--- a/amber/layouts/_blog_summary.html.haml
+++ b/amber/layouts/_blog_summary.html.haml
@@ -10,10 +10,13 @@
%i
= time_tag(page.props.posted_at.to_date, :format => :long, :pubdate => true)
%div.content
- - if page.props.preview
+ - if page.props.preview_image
- if page.props.preview_image
.preview-img
%img{:src => page.props.preview_image}
+ - if page.props.preview
= page.props.preview
- - if page.props.more
- = link(I18n.t(:read_more) => amber_path(page)) \ No newline at end of file
+ - else
+ = render :text => page.props.excerpt, :type => page.props.content_type
+ - if page.props.more
+ = link(I18n.t(:read_more) => amber_path(page)) \ No newline at end of file