Created
December 3, 2017 11:43
-
-
Save hanneskaeufler/df48f4ee11c332c92efbc157c85174e9 to your computer and use it in GitHub Desktop.
Type safe html
This file contains hidden or 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
private def single_post(post : Post) | |
article do | |
header class: "post-title" do | |
h2 do | |
text post.title | |
link "#", to: Blog::Posts::Show.with(post.slug) | |
end | |
post_meta(post) | |
end | |
content(post) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment