improved layout flexibility

This commit is contained in:
B Mathis 2010-03-10 13:59:18 -06:00
parent 33bca7246e
commit 42251dddca
27 changed files with 124 additions and 328 deletions

View file

@ -1,5 +1,5 @@
#footer
.page_width
.content
Copyright © #{Time.now.strftime('%Y')} - #{page.blog_title} -
%span.credit Powered by <a href="http://octopress.org">Octopress</a>

View file

@ -1,6 +1,7 @@
.page_width
%a.title(href="/")=page.blog_title
- if page.respond_to? :google_custom_search_id
.content
%h1
%a.title(href="/")=page.blog_title
- if page.respond_to?(:google_custom_search_id) && page.google_custom_search_id
#search
%form(action="http://www.google.com/cse" id="cse-search-box")
%input(type="hidden" name="cx" value="#{page.google_custom_search_id}")

View file

@ -1,4 +1,4 @@
.page_width
.content
%ul
%li.alpha
%a(href="/") Blog

View file

@ -25,8 +25,8 @@ google_analytics_tracking_id:
#header= include "header.haml"
#nav= include "navigation.haml"
#page
.page_width
#content
#main
.blog= include "post.haml"
.blog.content= include "post.haml"
#sidebar= include "sidebar.haml"
= include "footer.haml"

View file

@ -25,7 +25,8 @@ google_analytics_tracking_id:
#header= include "header.haml"
#nav= include "navigation.haml"
#page
.page_width
#main= preserve rp(content)
#content
#main
.content= preserve rp(content)
#sidebar= include "sidebar.haml"
= include "footer.haml"

View file

@ -1,5 +1,6 @@
---
title: Hello World! I'm Octopress!
updated: March 10th, 2010
---
**Octopress is a blogging framework designed for hackers**, based on [Jekyll](http://github.com/mojombo/jekyll) the blog aware static site generator powering [Github pages](http://pages.github.com/).

View file

@ -17,7 +17,7 @@ function addExpander(div){
function toggleExpander(expander){
var html = '';
var expanderPos = expander.getPosition().y;
if($('main').toggleClass('expanded').hasClass('expanded'))
if($('page').toggleClass('expanded').hasClass('expanded'))
html = '&laquo; contract';
else
html = 'expand &raquo;';