Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Created October 14, 2018 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wikimatze/95341a6725199d87af92efe9d72dd79f to your computer and use it in GitHub Desktop.
Save wikimatze/95341a6725199d87af92efe9d72dd79f to your computer and use it in GitHub Desktop.
padrino blog tutorial _post.haml
.column.is-7.is-offset-2
.card.article
.card-content
.media
.media-content.has-text-centered
%p.title.article-title
%h3.has-text-centered
= link_to post.title, url_for(:posts, :show, :id => post.id)
.has-addons
%span.tag.is-rounded= time_ago_in_words(post.created_at || Time.now) + ' ago'
.content.article-body
= simple_format(post.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment