summaryrefslogtreecommitdiff
path: root/app/views/layouts/blog/_summary.html.haml
blob: 68756b1d61fee6dd02ad0ee37b4b115006a5c5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%article.blog_summary
  %heading.h3= link_to(page.title, page_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.body.try(:any?)
        = link_to(I18n.t(:read_more), page_path(page))
    - else
      = render :template => page.template_path