0
0
zero-blog/templates/posts/index.html.slim
Gibheer 0e547febf1 add post controller
This adds the post controller to get the posts from the database and
make apply all filters needed to make it a workable result.
2013-10-26 14:56:55 +02:00

20 lines
465 B
Plaintext

doctype 5
html
head
title zero-knowledge
body
header
h1 zero-knowledge
h2 noch ohne blub
#content
- for post in fetch(:posts)
article
header
h1
a href="/post/#{post[:post_id]}"= post[:title]
footer
.author=post[:username]
.date= post[:written].strftime('%Y-%m-%d')
.time= post[:written].strftime('%H-%M')
section= post[:content]