Created
October 14, 2018 17:18
-
-
Save wikimatze/95341a6725199d87af92efe9d72dd79f to your computer and use it in GitHub Desktop.
padrino blog tutorial _post.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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