Commits

Cory Li committed e749f9c

fixing up titles and stuff

Comments (0)

Files changed (6)

+---
+title: About Cory
+---
+
 # About Me
 
 I'm an [MIT][mit] student studying the wonders of course [6][c6] and [20][c20].

source/index.slim

-h1 Notes and Stuff
+---
+title: Cory's Notes
+---
 
+h1 Notes and Stuff
 
 - blog.articles.each do |article|
   dl.dl-horizontal

source/layout.slim

     == stylesheet_link_tag 'syntax'
     == stylesheet_link_tag 'style'
 
-    title My Blog
+    - if content_for? :title
+      title= yield_content :title
+    - else
+      title= current_page.data.title
+
   body
     .row
       #header
     .row
       .span3
         #sidebar
-          / == image_tag 'coryBlog.jpg', :class => 'img-polaroid'
           == image_tag 'header.png', :alt => 'header'
           h2.name == link_to 'Cory Li', '/index.html'
           ul.unstyled.nav.nav-list

source/layouts/post.slim

 - wrap_layout :layout do
+
+  / - content_for :title do 
+  /   | #{current_article.title}
+
   article
     header
       h1
-        a(href='#') Hello World
+        a(href='#')= current_article.title
       date= current_article.date.strftime('Written on %A, %B %e, %Y')
     == yield
 

source/stylesheets/style.css.sass

-@import "http://fonts.googleapis.com/css?family=Lato:300"
+@import "http://fonts.googleapis.com/css?family=Lato:300,300italic,700,700italic"
 @import "http://fonts.googleapis.com/css?family=Arvo:400"
 
 body
 h1,h2,h3,h4,h5,h6
   font-family: 'Arvo', serif
   line-height: 60px
+  font-weight: normal
 
 p, li, blockquote p
   font-size: 19px
+- content_for :title do
+  | Cory's Notes: ##{tagname}
+
 h1 Entries tagged "#{tagname}"
 ul
-- page_articles.each do |article|
-  li
-    == link_to article.title, article
-    date= article.date.strftime(', written on %B %e, %Y')
+  - page_articles.each do |article|
+    li
+      == link_to article.title, article
+      date= article.date.strftime(', written on %B %e, %Y')