aboutsummaryrefslogtreecommitdiff
path: root/source/_layouts/default.haml
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-11-05 21:30:03 -0600
committerB Mathis <brandon@imathis.com>2009-11-05 21:30:03 -0600
commit145f81046bc5881d7da86b05c8b92862b63f8080 (patch)
treedc5fdc003a11537ab0722cff1db39796eaf601e8 /source/_layouts/default.haml
parentfc691c1da6b091754b8881af5b2be509479baa21 (diff)
downloadmy_new_personal_website-145f81046bc5881d7da86b05c8b92862b63f8080.tar.xz
my_new_personal_website-145f81046bc5881d7da86b05c8b92862b63f8080.zip
updated rake file, reorganized stylesheets, added google site search, added google analytics
Diffstat (limited to '')
-rw-r--r--source/_layouts/default.haml24
1 files changed, 18 insertions, 6 deletions
diff --git a/source/_layouts/default.haml b/source/_layouts/default.haml
index 481791cb..30f4da19 100644
--- a/source/_layouts/default.haml
+++ b/source/_layouts/default.haml
@@ -1,6 +1,6 @@
---
blog_title: My Octopress Blog
-root_url:
+google_site_search_id:
---
!!! 1.1 Transitional
@@ -13,24 +13,29 @@ root_url:
%meta(name="keywords" content="#{page.keywords}")/
%link(href="/stylesheets/screen.css" rel="stylesheet" media="screen projection" type="text/css")
%link(href="/atom.xml" rel="alternate" title="#{page.blog_title}" type="application/atom+xml")
- /%script(src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js" type="text/javascript")/
%script(src="/javascripts/mootools-yui-compressed.js" type="text/javascript")
%script(src="/javascripts/jsonp.js" type="text/javascript")
%script(src="/javascripts/twitter_gitter.js" type="text/javascript")
%script(src="/javascripts/twitter.js" type="text/javascript")
+ %script(src="http://www.google-analytics.com/ga.js" type="text/javascript")
%body
#header
.page_width
%a.title(href="/")=page.blog_title
+ #search
+ %form(action="http://www.google.com/cse" id="cse-search-box")
+ %input(type="hidden" name="cx" value="#{page.google_site_search_id}")
+ %input(type="hidden" name="ie" value="UTF-8")
+ %input#q(type="text" name="q")
#nav
.page_width
%ul
%li.alpha
- %a(href="#{page.root_url}/") Blog
+ %a(href="/") Blog
%li.omega
- %a(href="#{page.root_url}/about") About
+ %a(href="/about") About
%li.subscribe
- %a(href="#{page.root_url}/atom.xml") Subscribe
+ %a(href="/atom.xml") Subscribe
#page
.page_width
#main
@@ -49,4 +54,11 @@ root_url:
#footer
.page_width
= "Copyright &copy; #{Time.now.strftime('%Y')} - #{page.blog_title} | "
- %span.credit Powered by <a href="http://github.com/imathis/octopress/">Octopress</a> \ No newline at end of file
+ %span.credit Powered by <a href="http://github.com/imathis/octopress/">Octopress</a>
+
+ //Google Analytics code
+ :javascript
+ try {
+ var pageTracker = _gat._getTracker("UA-10876422-1");
+ pageTracker._trackPageview();
+ } catch(err) {} \ No newline at end of file