Skip to content

Instantly share code, notes, and snippets.

@wikimatze

wikimatze/_post.haml

Created Oct 14, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.