Do stuff
This commit is contained in:
parent
decb9d8430
commit
c0ca040c2c
19 changed files with 366 additions and 237 deletions
5
layouts/_post.slim
Normal file
5
layouts/_post.slim
Normal 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
|
|
@ -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
7
layouts/navbar.slim
Normal 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
1
layouts/none.slim
Normal file
|
@ -0,0 +1 @@
|
|||
== yield
|
9
layouts/post.slim
Normal file
9
layouts/post.slim
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue