about summary refs log tree commit diff stats
path: root/app/views/blogs/_blog.html.haml
blob: 389f961d673a2fc53878551d7bfd86bc927e1a69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%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= blog.title
      .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)