0
0
Fork 0

add layout for the posts

This commit is contained in:
Gibheer 2013-10-27 19:47:51 +01:00
parent fcb995b0f0
commit e488b155e4
2 changed files with 28 additions and 18 deletions

View File

@ -0,0 +1,19 @@
doctype 5
html
head
title zero-knowledge
link(
href='/atom.xml'
rel='alternate'
title='Atom 1.0'
type='application/atom+xml')
link(
href='/stylesheet.css'
rel='stylesheet'
type='text/css')
body
header
h1 zero-knowledge
h2 noch ohne blub
#content
==yield

View File

@ -1,19 +1,10 @@
doctype 5
html
head
title zero-knowledge
body
- for post in fetch(:posts)
article
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==Kramdown::Document.new(post[:content]).to_html
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==Kramdown::Document.new(post[:content]).to_html