From 2a55f35211c3e8504a0cfa52d2f68933e8424947 Mon Sep 17 00:00:00 2001
From: Brandon Mathis
Date: Wed, 23 May 2012 21:20:03 -0500
Subject: [PATCH 01/24] Updated Gemfile
---
Gemfile | 26 ++++++++--------
Gemfile.lock | 85 +++++++++++++++++++++++++++-------------------------
2 files changed, 57 insertions(+), 54 deletions(-)
diff --git a/Gemfile b/Gemfile
index 6160f94..be2518b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,18 +1,18 @@
source "http://rubygems.org"
group :development do
- gem 'rake'
- gem 'rack'
- gem 'jekyll'
- gem 'rdiscount'
- gem 'pygments.rb'
- gem 'RedCloth'
- gem 'haml', '>= 3.1'
- gem 'compass', '>= 0.11'
- gem 'rubypants'
- gem 'rb-fsevent'
- gem 'stringex'
- gem 'liquid', '2.2.2'
+ gem 'rake', '~> 0.9.2'
+ gem 'rack', '~> 1.4.1'
+ gem 'jekyll', '~> 0.11.2'
+ gem 'rdiscount', '~> 1.6.8'
+ gem 'pygments.rb', '~> 0.2.12'
+ gem 'RedCloth', '~> 4.2.9'
+ gem 'haml', '~> 3.1.6'
+ gem 'compass', '~> 0.12.1'
+ gem 'rubypants', '~> 0.2.0'
+ gem 'rb-fsevent', '~> 0.9'
+ gem 'stringex', '~> 1.4.0'
+ gem 'liquid', '~> 2.3.0'
end
-gem 'sinatra', '1.2.6'
+gem 'sinatra', '~> 1.3.2'
diff --git a/Gemfile.lock b/Gemfile.lock
index c7278fa..1c1bf8d 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,66 +1,69 @@
GEM
remote: http://rubygems.org/
specs:
- RedCloth (4.2.8)
+ RedCloth (4.2.9)
albino (1.3.3)
posix-spawn (>= 0.3.6)
blankslate (2.1.2.4)
- chunky_png (1.2.1)
+ chunky_png (1.2.5)
classifier (1.3.3)
fast-stemmer (>= 1.0.0)
- compass (0.11.5)
+ compass (0.12.1)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
- directory_watcher (1.4.0)
- fast-stemmer (1.0.0)
- ffi (1.0.9)
- fssm (0.2.7)
- haml (3.1.2)
- jekyll (0.11.0)
- albino (>= 1.3.2)
- classifier (>= 1.3.1)
- directory_watcher (>= 1.1.1)
- kramdown (>= 0.13.2)
- liquid (>= 1.9.0)
- maruku (>= 0.5.9)
- kramdown (0.13.3)
- liquid (2.2.2)
+ directory_watcher (1.4.1)
+ fast-stemmer (1.0.1)
+ ffi (1.0.11)
+ fssm (0.2.9)
+ haml (3.1.6)
+ jekyll (0.11.2)
+ albino (~> 1.3)
+ classifier (~> 1.3)
+ directory_watcher (~> 1.1)
+ kramdown (~> 0.13)
+ liquid (~> 2.3)
+ maruku (~> 0.5)
+ kramdown (0.13.6)
+ liquid (2.3.0)
maruku (0.6.0)
syntax (>= 1.0.0)
posix-spawn (0.3.6)
- pygments.rb (0.1.3)
- rubypython (>= 0.5.1)
- rack (1.3.2)
- rake (0.9.2)
- rb-fsevent (0.4.3.1)
+ pygments.rb (0.2.12)
+ rubypython (~> 0.5.3)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
+ rake (0.9.2.2)
+ rb-fsevent (0.9.1)
rdiscount (1.6.8)
rubypants (0.2.0)
- rubypython (0.5.1)
+ rubypython (0.5.3)
blankslate (>= 2.1.2.3)
ffi (~> 1.0.7)
sass (3.1.18)
- sinatra (1.2.6)
- rack (~> 1.1)
- tilt (>= 1.2.2, < 2.0)
- stringex (1.3.0)
+ sinatra (1.3.2)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ stringex (1.4.0)
syntax (1.0.0)
- tilt (1.3.2)
+ tilt (1.3.3)
PLATFORMS
ruby
DEPENDENCIES
- RedCloth
- compass (>= 0.11)
- haml (>= 3.1)
- jekyll
- liquid (= 2.2.2)
- pygments.rb
- rack
- rake
- rb-fsevent
- rdiscount
- rubypants
- sinatra (= 1.2.6)
- stringex
+ RedCloth (~> 4.2.9)
+ compass (~> 0.12.1)
+ haml (~> 3.1.6)
+ jekyll (~> 0.11.2)
+ liquid (~> 2.3.0)
+ pygments.rb (~> 0.2.12)
+ rack (~> 1.4.1)
+ rake (~> 0.9.2)
+ rb-fsevent (~> 0.9)
+ rdiscount (~> 1.6.8)
+ rubypants (~> 0.2.0)
+ sinatra (~> 1.3.2)
+ stringex (~> 1.4.0)
From e53b26ad3042d5657c869ab1961c35e7b716e4e9 Mon Sep 17 00:00:00 2001
From: Brandon Mathis
Date: Thu, 24 May 2012 10:28:32 -0500
Subject: [PATCH 02/24] updated plugins to work with latest version of Liquid
---
plugins/blockquote.rb | 4 ++--
plugins/code_block.rb | 2 +-
plugins/pullquote.rb | 6 ++----
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index 7fb8c26..62e7d14 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -46,7 +46,7 @@ module Jekyll
end
def render(context)
- quote = paragraphize(super.map(&:strip).join)
+ quote = paragraphize(super)
author = "#{@by.strip}" if @by
if @source
url = @source.match(/https?:\/\/(.+)/)[1].split('/')
@@ -75,7 +75,7 @@ module Jekyll
end
def paragraphize(input)
- "#{input.gsub(/\n\n/, '
').gsub(/\n/, '
')}
"
+ "#{input.lstrip.rstrip.gsub(/\n\n/, '
').gsub(/\n/, '
')}
"
end
end
end
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index e175d44..44e3494 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -79,7 +79,7 @@ module Jekyll
def render(context)
output = super
- code = super.join
+ code = super
source = "
-{% if site.disqus_short_name and page.comments == true %}
-
-{% endif %}
+{% if page.comments == true %}{% include comments.html %}{% endif %}
{% unless page.sidebar == false %}
{% endunless %}
-
From 862326453260fe6ded91033f00179896e7322a94 Mon Sep 17 00:00:00 2001
From: Brandon Mathis
Date: Wed, 6 Jun 2012 22:56:02 -0500
Subject: [PATCH 14/24] added custom after post include to post template
---
.themes/classic/source/_layouts/post.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index 9c3375f..a440b29 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -25,6 +25,7 @@ single: true
+{% include custom/after_post.html %}
{% if page.comments == true %}{% include comments.html %}{% endif %}
{% unless page.sidebar == false %}
From 43850a24562b6ce6becdddc673cc0336cc1b56c1 Mon Sep 17 00:00:00 2001
From: Brandon Mathis
Date: Thu, 7 Jun 2012 00:04:46 -0500
Subject: [PATCH 15/24] Fixed issue with CSS image mask test failing.
Refactored Octopress.js functions into a closure. Added Twitter and GitHub
feeds to Octopress.js to reduce http requests. Fixes #596
---
.../classic/sass/partials/_navigation.scss | 2 +-
.../source/_includes/after_footer.html | 6 -
.../source/_includes/asides/delicious.html | 4 +-
.themes/classic/source/javascripts/github.js | 48 ---
.../source/javascripts/modernizr-2.0.js | 4 +-
.../classic/source/javascripts/octopress.js | 346 +++++++++++++-----
.themes/classic/source/javascripts/twitter.js | 94 -----
7 files changed, 251 insertions(+), 253 deletions(-)
delete mode 100644 .themes/classic/source/javascripts/github.js
delete mode 100644 .themes/classic/source/javascripts/twitter.js
diff --git a/.themes/classic/sass/partials/_navigation.scss b/.themes/classic/sass/partials/_navigation.scss
index 781d2f7..b0bf3e4 100644
--- a/.themes/classic/sass/partials/_navigation.scss
+++ b/.themes/classic/sass/partials/_navigation.scss
@@ -117,7 +117,7 @@ body > nav {
}
&:hover:after { background-color: lighten($nav-color, 20); }
}
-.cssmask {
+.maskimage {
body > nav {
@media only screen and (min-width: 550px) {
ul[data-subscription$=email] + form {
diff --git a/.themes/classic/source/_includes/after_footer.html b/.themes/classic/source/_includes/after_footer.html
index 88c0de3..0324a32 100644
--- a/.themes/classic/source/_includes/after_footer.html
+++ b/.themes/classic/source/_includes/after_footer.html
@@ -5,9 +5,3 @@
{% include twitter_sharing.html %}
{% endunless %}
{% include custom/after_footer.html %}
-{% if site.github_user %}
-
-{% endif %}
-{% if site.twitter_user %}
-
-{% endif %}
diff --git a/.themes/classic/source/_includes/asides/delicious.html b/.themes/classic/source/_includes/asides/delicious.html
index 115cdcb..6f656a2 100644
--- a/.themes/classic/source/_includes/asides/delicious.html
+++ b/.themes/classic/source/_includes/asides/delicious.html
@@ -2,7 +2,7 @@
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/.themes/classic/source/javascripts/github.js b/.themes/classic/source/javascripts/github.js
deleted file mode 100644
index 988986c..0000000
--- a/.themes/classic/source/javascripts/github.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var github = (function(){
- function render(target, data){
- var i = 0, repos = '';
-
- for(i = 0; i < data.length; i++) {
- repos += ''+data[i].name+''+data[i].description+'
';
- }
- target.html(repos);
- }
- return {
- showRepos: function(options){
- $.ajax({
- url: "https://api.github.com/users/"+options.user+"/repos?callback=?"
- , dataType: 'jsonp'
- , error: function (err) { options.target.find('.loading').addClass('error').text("Error loading feed"); }
- , success: function(data) {
- var repos = [];
- if (!data.data) { return; }
- for (var i = 0; i < data.data.length; i++) {
- if (options.skip_forks && data.data[i].fork) { continue; }
- repos.push(data.data[i]);
- }
- repos.sort(function(a, b) {
- var aDate = new Date(a.pushed_at).valueOf(),
- bDate = new Date(b.pushed_at).valueOf();
-
- if (aDate === bDate) { return 0; }
- return aDate > bDate ? -1 : 1;
- });
-
- if (options.count) { repos.splice(options.count); }
- render(options.target, repos);
- }
- });
- }
- };
-})();
-
-$(document).ready(function(){
- g = $('#gh_repos');
-
- github.showRepos({
- user: g.attr('data-user')
- , count: parseInt(g.attr('data-count'))
- , skip_forks: g.attr('data-skip') == 'true'
- , target: g
- });
-});
diff --git a/.themes/classic/source/javascripts/modernizr-2.0.js b/.themes/classic/source/javascripts/modernizr-2.0.js
index f610af7..195001a 100644
--- a/.themes/classic/source/javascripts/modernizr-2.0.js
+++ b/.themes/classic/source/javascripts/modernizr-2.0.js
@@ -1,4 +1,4 @@
/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
- * Build: http://www.modernizr.com/download/#-video-shiv-cssclasses-addtest-testprop-testallprops-domprefixes-css_mask-forms_placeholder-load
+ * Build: http://www.modernizr.com/download/#-video-shiv-cssclasses-addtest-testprop-testallprops-domprefixes-forms_placeholder-load
*/
-;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.substr(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.5.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,g.className+=" "+(b?"":"no-")+a,e[a]=b}return e},x(""),i=k=null,function(a,b){function g(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function h(){var a=k.elements;return typeof a=="string"?a.split(" "):a}function i(a){var b={},c=a.createElement,e=a.createDocumentFragment,f=e();a.createElement=function(a){var e=(b[a]||(b[a]=c(a))).cloneNode();return k.shivMethods&&e.canHaveChildren&&!d.test(a)?f.appendChild(e):e},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(a){return b[a]=c(a),f.createElement(a),'c("'+a+'")'})+");return n}")(k,f)}function j(a){var b;return a.documentShived?a:(k.shivCSS&&!e&&(b=!!g(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(b=!i(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea)$/i,e,f;(function(){var a=b.createElement("a");a.innerHTML="",e="hidden"in a,f=a.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var k={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:j};a.html5=k,j(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f",d.insertBefore(c.lastChild,d.firstChild)}function h(){var a=k.elements;return typeof a=="string"?a.split(" "):a}function i(a){var b={},c=a.createElement,e=a.createDocumentFragment,f=e();a.createElement=function(a){var e=(b[a]||(b[a]=c(a))).cloneNode();return k.shivMethods&&e.canHaveChildren&&!d.test(a)?f.appendChild(e):e},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(a){return b[a]=c(a),f.createElement(a),'c("'+a+'")'})+");return n}")(k,f)}function j(a){var b;return a.documentShived?a:(k.shivCSS&&!e&&(b=!!g(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(b=!i(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea)$/i,e,f;(function(){var a=b.createElement("a");a.innerHTML="",e="hidden"in a,f=a.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var k={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:j};a.html5=k,j(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f')
- var mobileNav = $('fieldset.mobile-nav').append('