diff options
Diffstat (limited to 'amber/layouts/_blog_summary.html.haml')
-rw-r--r-- | amber/layouts/_blog_summary.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/amber/layouts/_blog_summary.html.haml b/amber/layouts/_blog_summary.html.haml new file mode 100644 index 0000000..b14f6d0 --- /dev/null +++ b/amber/layouts/_blog_summary.html.haml @@ -0,0 +1,16 @@ +- page = locals[:page] +%article.page-summary + %h2= link(page.title => amber_path(page)) + .byline + - if page.props.author + %span.author>= page.props.author + - if page.props.author && page.props.posted_at + \. + - if page.props.posted_at + %i + = time_tag(page.props.posted_at.to_date, :format => :long, :pubdate => true) + %div.content + - 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 |