Permalink
Browse files

split layout to partials

  • Loading branch information...
1 parent da65ea1 commit ede357ee42c2c1c600e135fb9d8f8faf71065eaf @evenwu committed Sep 15, 2011
Showing with 48 additions and 18 deletions.
  1. +1 −0 source/_footer.haml
  2. +1 −0 source/_header.haml
  3. +1 −0 source/_sidebar.haml
  4. +45 −18 source/index.html.haml
View
@@ -0,0 +1 @@
+%h2 footer
View
@@ -0,0 +1 @@
+%h1 Golden Grid System Compass Framework
View
@@ -0,0 +1 @@
+%h2 sidebar
View
@@ -1,20 +1,47 @@
- content_for :head do
- %title Home
+ %title Golden Grid System Compass Framework
+- content_for :header do
+ = partial "header"
+- content_for :sidebar do
+ = partial "sidebar"
+- content_for :footer do
+ = partial "footer"
-%h1= lorem.words 5
-%h2= lorem.words 5
-%h3= lorem.words 5
-%h4= lorem.words 5
-%h5= lorem.words 5
-%h6= lorem.words 5
-%h2
- = lorem.sentence
-%p= lorem.sentences 5
-:markdown
- **甲吐出**那飽吸過的*香煙*,愈會碰著痛苦。甲吐出那飽吸過的香煙,遂亦不受到阻礙,來和他們一拚!
-%ul
- - 3.times do
- %li= lorem.words 5
-%ol
- - 3.times do
- %li= lorem.words 5
+%section
+ %h2 標題
+ %h1
+ 標題
+ = lorem.words 3
+ %h2
+ 標題
+ = lorem.words 3
+ %h3
+ 標題
+ = lorem.words 3
+ %h4
+ 標題
+ = lorem.words 3
+ %h5
+ 標題
+ = lorem.words 3
+ %h6
+ 標題
+ = lorem.words 3
+
+%section
+ %h2 句子
+ %p= lorem.sentences 5
+ :markdown
+ **甲吐出**那飽吸過的*香煙*,愈會碰著痛苦。甲吐出那飽吸過的香煙,遂亦不受到阻礙,來和他們一拚!
+
+%section
+ %h2 列表
+ %ul
+ - 3.times do
+ %li= lorem.words 5
+ %ol
+ - 3.times do
+ %li= lorem.words 5
+
+%section
+ %h2 表單

0 comments on commit ede357e

Please sign in to comment.