f5aca904 |
--- |
e0a0d093 |
blog_title: My Octopress Blog |
fcc761c7 |
|
513cb7e0 |
twitter_user: |
c27f5f8e |
tweet_count: 3 |
24c5fedc |
show_replies: false
|
513cb7e0 |
delicious_user: |
bc033cfa |
delicious_count: 3 |
8cb2f154 |
|
fcc761c7 |
full_url: |
24c5fedc |
disqus_short_name:
|
f6e169a8 |
google_custom_search_id:
google_analytics_tracking_id: |
24c5fedc |
|
f5aca904 |
---
|
82d0251d |
!!! 1.1 Transitional
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en")
%head |
0d602515 |
%title #{page.blog_title} :: #{page.title} |
82d0251d |
- if page.respond_to? :description |
e0a0d093 |
%meta(name="description" content="#{page.description}")/ |
82d0251d |
- if page.respond_to? :keywords |
e0a0d093 |
%meta(name="keywords" content="#{page.keywords}")/ |
790d5a44 |
%link(href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css") |
5c736f5e |
%link(href="/atom.xml" rel="alternate" title="#{page.blog_title}" type="application/atom+xml") |
24c5fedc |
- if page.respond_to? :twitter_user
:javascript
var twitter_user = "#{page.twitter_user}"
var show_replies = #{page.show_replies};
var tweet_count = #{page.tweet_count}; |
a3fcfdea |
%script(src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js" type="text/javascript") |
7e87a4c5 |
%script(src="/javascripts/mootools-1.2.4.2-more.js" type="text/javascript") |
1eddd60a |
%script(src="/javascripts/octopress.js" type="text/javascript") |
24c5fedc |
%script(src="/javascripts/twitter.js" type="text/javascript")
- if page.respond_to? :google_analytics
%script(src="http://www.google-analytics.com/ga.js" type="text/javascript") |
bdc66eab |
%body(id="#{(page.respond_to?(:body_id) ? page.body_id : nil)}") |
82d0251d |
#header
.page_width |
f5aca904 |
%a.title(href="/")=page.blog_title |
50e218dd |
- if page.respond_to? :google_custom_search_id |
24c5fedc |
#search
%form(action="http://www.google.com/cse" id="cse-search-box") |
50e218dd |
%input(type="hidden" name="cx" value="#{page.google_custom_search_id}") |
24c5fedc |
%input(type="hidden" name="ie" value="UTF-8")
%input#q(type="text" name="q") |
77bb406a |
#nav
.page_width
%ul |
82d0251d |
%li.alpha |
145f8104 |
%a(href="/") Blog |
d8d51719 |
%li.omega |
04c07e7e |
%a(href="/about.html") About |
77bb406a |
%li.subscribe |
145f8104 |
%a(href="/atom.xml") Subscribe |
82d0251d |
#page
.page_width |
5c736f5e |
#main
- if page.respond_to? :date |
bdc66eab |
.blog
.article
%h2= page.title
= preserve rp(content)
%p.pubdate
Published:
=page.date.strftime("%d %b, %Y") |
24c5fedc |
- if page.respond_to? :disqus_short_name
#disqus_thread
:javascript |
50c03684 |
var disqus_url = "#{page.full_url}#{page.url}"; |
24c5fedc |
%noscript |
87c7c1a1 |
%a(href="http://#{page.disqus_short_name}.disqus.com/?url=ref") View the discussion thread |
24c5fedc |
%script(type="text/javascript" src="http://disqus.com/forums/#{page.disqus_short_name}/embed.js") |
5c736f5e |
- else |
89909064 |
= preserve rp(content) |
5c736f5e |
#sidebar |
24c5fedc |
- if page.respond_to? :twitter_user |
f702f2fc |
%h4 Twitter <a class="small" href="http://twitter.com/#{page.twitter_user}">@#{page.twitter_user}</a> |
24c5fedc |
#twitter |
f702f2fc |
%ul#twitter_status |
24c5fedc |
Status updating... |
8cb2f154 |
- if page.respond_to? :delicious_user
%h4 My Delicious <a class="small" href="http://delicious.com/#{page.delicious_user}">more →</a>
#delicious |
bc033cfa |
%script(type="text/javascript" src="http://feeds.delicious.com/v2/js/#{page.delicious_user}?title=&count=#{page.delicious_count}&sort=date&extended") |
82d0251d |
#footer |
fd32bcab |
.page_width |
6b9c3af4 |
Copyright © #{Time.now.strftime('%Y')} - #{page.blog_title} - |
b29e546c |
%span.credit Powered by <a href="http://octopress.org">Octopress</a> |
24c5fedc |
- if page.respond_to? :disqus_short_name |
bc033cfa |
//Disqus Comments code |
24c5fedc |
:javascript
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
} |
416667cc |
} |
24c5fedc |
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/#{page.disqus_short_name}/get_num_replies.js' + query + '"></' + 'script>');
})(); |
f6e169a8 |
- if page.respond_to? :google_analytics_tracking_id |
24c5fedc |
//Google Analytics code
:javascript
try { |
f6e169a8 |
var pageTracker = _gat._getTracker("#{google_analytics_tracking_id}"); |
24c5fedc |
pageTracker._trackPageview();
} catch(err) {} |