about summary refs log tree commit diff stats
path: root/app/views/blogs/_blog.html.haml
blob: 8972c2e1dc3fc02de3709358b8493522ff711508 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%article#blog-post
  %header
    .post-calendar{ class: "post-date-#{(blog.published_at.year - 2007) % 4 + 1}" }
      %span.post-month= blog.published_at.strftime("%^b")
      %span.post-day= blog.published_at.day
    .blog-title
      %h2= link_to_unless_current blog.title, blog
      .post-author Hatkirby
  %blockquote#blog-content.entry-content.bubble.rounded.bottom
    - if short and blog.has_read_more
      = markdown(blog.short_body)
      = link_to "Read more...", blog
    - else
      = markdown(blog.body)
  %cite.bubble
    %strong Hatkirby
    on
    = blog.published_at.strftime("%B #{blog.published_at.day.ordinalize}, %Y at %-I:%M:%S%P")