Last active
October 14, 2018 16:55
-
-
Save wikimatze/3544f45cec1d2ac1eec6555dc9e2d378 to your computer and use it in GitHub Desktop.
padrino blog tutorial show.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
%section.articles | |
.column.is-8.is-offset-2 | |
.card.article | |
.card-content | |
.media | |
.media-content.has-text-centered | |
%h3.title.article-title= @post.title | |
.tags.has-addons.level-item | |
%span.tag.is-rounded= time_ago_in_words(@post.created_at || Time.now) + ' ago' | |
.content.article-body | |
= simple_format(@post.body) | |
%p= link_to 'View all posts', url_for(:posts, :index) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment