summaryrefslogtreecommitdiff
path: root/app/views/layouts/blog/show.html.haml
blob: b5bc983140acca8535c7d27579f24f55a93713cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%article.blog_full

  %h1.first= @page.title

  .byline
    - if @page.props.author
      %span.author>= I18n.t('posted_by') + ' ' + @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)

  - content_for :blog_content do
    = yield

  - if content_for?(:blog_content)
    = yield(:blog_content)
  - else
    = @page.props.preview