This commit is contained in:
Jonathan Rudenberg 2012-08-22 11:15:21 -04:00
parent decb9d8430
commit c0ca040c2c
19 changed files with 366 additions and 237 deletions

5
layouts/_post.slim Normal file
View file

@ -0,0 +1,5 @@
article
h1 == link_to @post[:title], @post.identifier.chop
- time = Time.parse(@post[:created_at])
date title=time.strftime('%F %R %Z') datetime=time.strftime('%FT%T%:z') pubdate=true = time.strftime('%B %-d, %Y')
== @content || @post.compiled_content

View file

@ -2,5 +2,8 @@ doctype html
html lang='en'
head == render 'head'
body
#container
== yield
== render 'navbar'
.container
.row
.span8.offset2
== yield

7
layouts/navbar.slim Normal file
View file

@ -0,0 +1,7 @@
.navbar.navbar-static-top
.navbar-inner
a.brand href='/' Tent
ul.nav
== nav_link_with_active 'Intro', '/'
== nav_link_with_active 'Blog', '/blog'
== nav_link_with_active 'Docs', '/docs'

1
layouts/none.slim Normal file
View file

@ -0,0 +1 @@
== yield

9
layouts/post.slim Normal file
View file

@ -0,0 +1,9 @@
doctype html
html lang='en'
head == render 'head'
body
== render 'navbar'
.container
.row
.span8.offset2
== render '_post', post: @item, content: yield