summaryrefslogtreecommitdiff
path: root/amber/layouts/_blog_summary.html.haml
blob: 2c1d0cef60b9cf3e240a2a77660e955773e89173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- 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_image
      .preview-img
        %img{:src => page.props.preview_image}
    .preview-text
      - if page.props.preview
        = page.props.preview
      - else
        = render :text => page.props.excerpt, :type => page.props.content_type
      - if page.props.more
        = link(I18n.t(:read_more) => amber_path(page))