More touching up on both templates
authorelliottcable <[email protected]>
Sun, 18 May 2008 10:35:49 +0000 (18 02:35 -0800)
committerelliottcable <[email protected]>
Sun, 18 May 2008 10:35:49 +0000 (18 02:35 -0800)
prepped/design/index.haml
prepped/design/post.haml [copied from prepped/design/index.haml with 64% similarity]

index 1373eae..1564edf 100644 (file)
@@ -12,7 +12,7 @@
     %ol#posts
       - for post in posts
         %li
-          %a{:href => "posts/#{post[:slug]}", :title => post[:title]}= post[:title]
+          %a{:href => "posts/#{post[:slug]}.xhtml", :title => post[:title]}= post[:title]
     #footer
       :markdown
         powered by [git-blog](http://github.com/elliottcable/git-blog "elliottcable's git-blog on GitHub"), by [elliottcable](http://elliottcable.name "elliottcable")
\ No newline at end of file
similarity index 64%
copy from prepped/design/index.haml
copy to prepped/design/post.haml
index 1373eae..930ee83 100644 (file)
@@ -3,16 +3,13 @@
 %html{:xmlns => 'http://www.w3.org/1999/xhtml', :'xml:lang' => 'en'}
   %head
     %meta{:'http-equiv' => 'Content-Type', :content => 'application/xhtml+xml;charset=utf-8'}
-    %title yet another git-blog
-    %link{:rel => 'stylesheet', :href => 'design/main.css', :type => 'text/css;charset=utf-8'}
+    %title= title
+    %link{:rel => 'stylesheet', :href => '../design/main.css', :type => 'text/css;charset=utf-8'}
     / %link{:rel => 'alternate', :href => '/posts/feed.rss', :type => 'application/rss+xml', :title => 'Feed (RSS 2.0)'}
     / %link{:rel => 'alternate', :href => '/posts/feed.atom', :type => 'application/atom+xml', :title => 'Feed (Atom)'}
   %body
-    %h1 yet another git-blog
-    %ol#posts
-      - for post in posts
-        %li
-          %a{:href => "posts/#{post[:slug]}", :title => post[:title]}= post[:title]
+    %h1= title
+    #content= content
     #footer
       :markdown
         powered by [git-blog](http://github.com/elliottcable/git-blog "elliottcable's git-blog on GitHub"), by [elliottcable](http://elliottcable.name "elliottcable")
\ No newline at end of file