{% endif %}
\ No newline at end of file
From 734ee1f31e3aa48d5e4c283f8a82f9c07c577bed Mon Sep 17 00:00:00 2001
From: Drew Wells
Date: Sun, 9 Oct 2011 04:14:27 -0300
Subject: [PATCH 16/84] As other things rely on these variables, they need to
be global. Fixes issues with comments not loading on the blog. Semicolons
non-optional due to SAFE function
http://twitter.com/#!/elijahmanor/status/121980870428069890
---
.themes/classic/source/_includes/disqus.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html
index 4b91353..a58512b 100644
--- a/.themes/classic/source/_includes/disqus.html
+++ b/.themes/classic/source/_includes/disqus.html
@@ -1,19 +1,19 @@
{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
{% if site.disqus_short_name and page.comments != false %}
diff --git a/.themes/classic/source/_includes/post/sharing.html b/.themes/classic/source/_includes/post/sharing.html
index f0f9b9d..e32500d 100644
--- a/.themes/classic/source/_includes/post/sharing.html
+++ b/.themes/classic/source/_includes/post/sharing.html
@@ -5,4 +5,7 @@
{% if site.google_plus_one %}
{% endif %}
+ {% if site.facebook_like %}
+
+ {% endif %}
diff --git a/_config.yml b/_config.yml
index f40ccf1..26881bc 100644
--- a/_config.yml
+++ b/_config.yml
@@ -80,3 +80,6 @@ disqus_show_comment_count: false
# Google Analytics
google_analytics_tracking_id:
+
+# Facebook Like
+facebook_like: true
From 35ebe0d647dd1775a99ba476f5f26958003c951e Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Tue, 11 Oct 2011 14:20:52 +0200
Subject: [PATCH 18/84] Allows '-' in deployment branch names, fixes #213
---
Rakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Rakefile b/Rakefile
index c1594c7..1206787 100644
--- a/Rakefile
+++ b/Rakefile
@@ -283,7 +283,7 @@ desc "Set up _deploy folder and deploy branch for Github Pages deployment"
task :setup_github_pages do
repo_url = get_stdin("Enter the read/write url for your repository: ")
user = repo_url.match(/:([^\/]+)/)[1]
- branch = (repo_url.match(/\/\w+.github.com/).nil?) ? 'gh-pages' : 'master'
+ branch = (repo_url.match(/\/[\w-]+.github.com/).nil?) ? 'gh-pages' : 'master'
project = (branch == 'gh-pages') ? repo_url.match(/\/([^\.]+)/)[1] : ''
unless `git remote -v`.match(/origin.+?octopress.git/).nil?
# If octopress is still the origin remote (from cloning) rename it to octopress
From 9909f16d80ae0a7a64f829ece84a60948ae9b5a5 Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Tue, 11 Oct 2011 15:46:20 +0200
Subject: [PATCH 19/84] Codeblock: Output source even if 'pygments_prefix' or
'pygments_suffix' is nil. Fixes #182
---
plugins/code_block.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index bf89fea..e175d44 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -90,6 +90,7 @@ module Jekyll
source = safe_wrap(source)
source = context['pygments_prefix'] + source if context['pygments_prefix']
source = source + context['pygments_suffix'] if context['pygments_suffix']
+ source
end
end
end
From 86c72a4ca6355813677335351b6fce2d82d55a46 Mon Sep 17 00:00:00 2001
From: Brandon Mathis
Date: Tue, 11 Oct 2011 15:14:41 -0500
Subject: [PATCH 20/84] ensures compiled /source/stylesheets/screen.css exists
before running watch and preview tasks, fixes #214
---
Rakefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Rakefile b/Rakefile
index 1206787..234e65a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -58,6 +58,7 @@ desc "Watch the site and regenerate when it changes"
task :watch do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass."
+ system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
jekyllPid = Process.spawn("jekyll --auto")
compassPid = Process.spawn("compass watch")
@@ -73,6 +74,7 @@ desc "preview the site in a web browser"
task :preview do
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
+ system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
jekyllPid = Process.spawn("jekyll --auto")
compassPid = Process.spawn("compass watch")
rackupPid = Process.spawn("rackup --port #{server_port}")
From 8897083cf7b90c0f8e08d0b0932eed2c3baf9684 Mon Sep 17 00:00:00 2001
From: strand
Date: Tue, 11 Oct 2011 15:59:25 -0700
Subject: [PATCH 21/84] Implemented pullquoteleft functionality
---
plugins/pullquote.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/plugins/pullquote.rb b/plugins/pullquote.rb
index 03e307a..6d175e8 100644
--- a/plugins/pullquote.rb
+++ b/plugins/pullquote.rb
@@ -1,10 +1,10 @@
#
# Author: Brandon Mathis
-# Based on the sematic pullquote technique by Maykel Loomans at http://miekd.com/articles/pull-quotes-with-html5-and-css/
+# Based on the semantic pullquote technique by Maykel Loomans at http://miekd.com/articles/pull-quotes-with-html5-and-css/
#
# Outputs a span with a data-pullquote attribute set from the marked pullquote. Example:
#
-# {% pullquote %}
+# {% pullquote %}
# When writing longform posts, I find it helpful to include pullquotes, which help those scanning a post discern whether or not a post is helpful.
# It is important to note, {" pullquotes are merely visual in presentation and should not appear twice in the text. "} That is why it is prefered
# to use a CSS only technique for styling pullquotes.
@@ -17,11 +17,13 @@
#
#
#
+# Strand's modification adds the ability to call this plugin with {% pullquote align:left %} which duplicates the current behavior of the pullquote plugin, with a left float and appropriate margins.
module Jekyll
class PullquoteTag < Liquid::Block
def initialize(tag_name, markup, tokens)
+ markup =~ /align:left/i ? @align = "left" : @align = ""
super
end
@@ -29,7 +31,7 @@ module Jekyll
output = super
if output.join =~ /\{"\s*(.+)\s*"\}/
@quote = $1
- "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}"
+ "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}" # TODO Determine how to makethis span have a left or right flag.
else
return "Surround your pullquote like this {\" text to be quoted \"}"
end
From ce6604a15e61c1bf931b2d094c5cf30804414fa6 Mon Sep 17 00:00:00 2001
From: strand
Date: Tue, 11 Oct 2011 16:09:38 -0700
Subject: [PATCH 22/84] Edited .themes/classic/sass/base/_typography.scss via
GitHub
---
.themes/classic/sass/base/_typography.scss | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss
index ef83065..d4b59ad 100644
--- a/.themes/classic/sass/base/_typography.scss
+++ b/.themes/classic/sass/base/_typography.scss
@@ -115,7 +115,7 @@ blockquote {
}
}
-.has-pullquote:before {
+.has-pullquote:before, .has-pullquoteleft:before {
/* Reset metrics. */
padding: 0;
border: none;
@@ -134,6 +134,15 @@ blockquote {
font-size: 1.4em;
line-height: 1.45em;
}
+
+.has-pullquoteleft:before {
+
+ /* Make left pullquotes align properly. */
+ float: left;
+ margin: .5em 1.5em 1em 0;
+
+}
+
/* @extend this to force long lines of continuous text to wrap */
.force-wrap {
white-space: -moz-pre-wrap;
From cae964e87513a5afc9763a83c21bbe59159d4acb Mon Sep 17 00:00:00 2001
From: B Strand
Date: Wed, 12 Oct 2011 11:14:07 -0700
Subject: [PATCH 23/84] Updated pullquote.rb to use a vernacular similar to the
image tag.
---
plugins/pullquote.rb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/plugins/pullquote.rb b/plugins/pullquote.rb
index 6d175e8..5dd6a55 100644
--- a/plugins/pullquote.rb
+++ b/plugins/pullquote.rb
@@ -17,13 +17,14 @@
#
#
#
-# Strand's modification adds the ability to call this plugin with {% pullquote align:left %} which duplicates the current behavior of the pullquote plugin, with a left float and appropriate margins.
+# Strand's modification adds the ability to call this plugin with {% pullquote left %} which duplicates the current behavior of the pullquote plugin, with a left float and appropriate margins.
+# Note: this version of the plugin now creates pullquotes with the class of pullquote-right by default
module Jekyll
class PullquoteTag < Liquid::Block
def initialize(tag_name, markup, tokens)
- markup =~ /align:left/i ? @align = "left" : @align = ""
+ markup =~ /left/i ? @align = "left" : @align = "right"
super
end
@@ -31,7 +32,7 @@ module Jekyll
output = super
if output.join =~ /\{"\s*(.+)\s*"\}/
@quote = $1
- "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}" # TODO Determine how to makethis span have a left or right flag.
+ "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}" # TODO Determine how to makethis span have a left or right flag.
else
return "Surround your pullquote like this {\" text to be quoted \"}"
end
From 490b2593ec8e912b042f49966a80c37f0026e0d9 Mon Sep 17 00:00:00 2001
From: B Strand
Date: Wed, 12 Oct 2011 11:17:24 -0700
Subject: [PATCH 24/84] Renamed has-pullquote and has-pullquoteleft classes to
pullquote-right and pullquote-left (I suppose a less stylistic naming
convention might pullquote-default and pullquote-alternate.)
---
.themes/classic/sass/base/_typography.scss | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss
index d4b59ad..f248c2e 100644
--- a/.themes/classic/sass/base/_typography.scss
+++ b/.themes/classic/sass/base/_typography.scss
@@ -115,7 +115,7 @@ blockquote {
}
}
-.has-pullquote:before, .has-pullquoteleft:before {
+.pullquote-right:before, .pullquote-left:before {
/* Reset metrics. */
padding: 0;
border: none;
@@ -135,7 +135,7 @@ blockquote {
line-height: 1.45em;
}
-.has-pullquoteleft:before {
+.pullquote-left:before {
/* Make left pullquotes align properly. */
float: left;
From f6fb11a37571b48844c488bc351dd78747ee99bd Mon Sep 17 00:00:00 2001
From: B Strand
Date: Wed, 12 Oct 2011 13:25:51 -0700
Subject: [PATCH 25/84] Added class='citation' to blockquotes generated by the
blockquote plugin to differentiate their style from the style of an html or
markdown blockquote.
---
plugins/blockquote.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index a0bf12c..f4f57da 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -71,7 +71,7 @@ module Jekyll
else
"#{quote}"
end
- "
#{blockquote}
"
+ "
#{blockquote}
"
end
def paragraphize(input)
From 5b0486ced124c08ca017b20f584764bab4c5ff0e Mon Sep 17 00:00:00 2001
From: B Strand
Date: Wed, 12 Oct 2011 13:28:58 -0700
Subject: [PATCH 26/84] Separated citation style from the general blockquote
style. The general blockquote style is great for nesting and indentation,
while the citation is excellent for quote attribution.
---
.themes/classic/sass/base/_typography.scss | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss
index f248c2e..ec99288 100644
--- a/.themes/classic/sass/base/_typography.scss
+++ b/.themes/classic/sass/base/_typography.scss
@@ -96,13 +96,17 @@ small { font-size: .8em; }
big { font-size: 1.2em; }
-blockquote {
+blockquote {
$bq-margin: 1.2em;
+ padding-left: 1em;
+}
+
+blockquote.citation {
+
font-style: italic;
position: relative;
font-size: 1.2em;
- line-height: 1.5em;
- padding-left: 1em;
+ line-height: 1.5em;
border-left: 4px solid rgba($text-color-light, .5);
cite {
font-style: italic;
From d983e3eb31cc80406a28ab566f78e52b90c56e93 Mon Sep 17 00:00:00 2001
From: B Strand
Date: Thu, 13 Oct 2011 11:30:25 -0700
Subject: [PATCH 27/84] Reverted previous commit to separate that change to a
different pull request.
---
plugins/blockquote.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index f4f57da..a0bf12c 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -71,7 +71,7 @@ module Jekyll
else
"#{quote}"
end
- "
#{blockquote}
"
+ "
#{blockquote}
"
end
def paragraphize(input)
From 2e7bc43cf7d3d0b11381ad131baae870f64f2d71 Mon Sep 17 00:00:00 2001
From: B Strand
Date: Thu, 13 Oct 2011 11:32:58 -0700
Subject: [PATCH 28/84] Reverted previous commit.
---
.themes/classic/sass/base/_typography.scss | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss
index ec99288..f248c2e 100644
--- a/.themes/classic/sass/base/_typography.scss
+++ b/.themes/classic/sass/base/_typography.scss
@@ -96,17 +96,13 @@ small { font-size: .8em; }
big { font-size: 1.2em; }
-blockquote {
+blockquote {
$bq-margin: 1.2em;
- padding-left: 1em;
-}
-
-blockquote.citation {
-
font-style: italic;
position: relative;
font-size: 1.2em;
- line-height: 1.5em;
+ line-height: 1.5em;
+ padding-left: 1em;
border-left: 4px solid rgba($text-color-light, .5);
cite {
font-style: italic;
From fe19c2aaae10c8e1029282a67d3dc268ce169fd0 Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 11:43:55 +0200
Subject: [PATCH 29/84] Removes duplicate mkdir_p
---
Rakefile | 1 -
1 file changed, 1 deletion(-)
diff --git a/Rakefile b/Rakefile
index 234e65a..fd0b58b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -101,7 +101,6 @@ task :new_post, :title do |t, args|
end
puts "Creating new post: #{filename}"
open(filename, 'w') do |post|
- system "mkdir -p #{source_dir}/#{posts_dir}/";
post.puts "---"
post.puts "layout: post"
post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\""
From 4b87a2fb7d08db399552bff7d1a574d7547c1664 Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 11:49:18 +0200
Subject: [PATCH 30/84] Removes 'titlecase' from page name, fixes #202
---
Rakefile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/Rakefile b/Rakefile
index fd0b58b..05b9c30 100644
--- a/Rakefile
+++ b/Rakefile
@@ -91,7 +91,6 @@ end
desc "Begin a new post in #{source_dir}/#{posts_dir}"
task :new_post, :title do |t, args|
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
- require './plugins/titlecase.rb'
mkdir_p "#{source_dir}/#{posts_dir}"
args.with_defaults(:title => 'new-post')
title = args.title
@@ -103,7 +102,7 @@ task :new_post, :title do |t, args|
open(filename, 'w') do |post|
post.puts "---"
post.puts "layout: post"
- post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\""
+ post.puts "title: \"#{title.gsub(/&/,'&')}\""
post.puts "date: #{Time.now.strftime('%Y-%m-%d %H:%M')}"
post.puts "comments: true"
post.puts "categories: "
@@ -115,7 +114,6 @@ end
desc "Create a new page in #{source_dir}/(filename)/index.#{new_page_ext}"
task :new_page, :filename do |t, args|
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
- require './plugins/titlecase.rb'
args.with_defaults(:filename => 'new-page')
page_dir = source_dir
if args.filename =~ /(^.+\/)?([\w_-]+)(\.)?(.+)?/
@@ -132,7 +130,7 @@ task :new_page, :filename do |t, args|
open(file, 'w') do |page|
page.puts "---"
page.puts "layout: page"
- page.puts "title: \"#{$2.gsub(/[-_]/, ' ').titlecase}\""
+ page.puts "title: \"#{$2.gsub(/[-_]/, ' ')}\""
page.puts "date: #{Time.now.strftime('%Y-%m-%d %H:%M')}"
page.puts "comments: true"
page.puts "sharing: true"
From d98a4de07ec8727b10c3f059c1fbee3e19d01761 Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 11:57:29 +0200
Subject: [PATCH 31/84] Makes titlecase of page/post titles configurable
---
.themes/classic/source/_includes/article.html | 4 ++--
.themes/classic/source/_layouts/page.html | 2 +-
_config.yml | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html
index 79e2652..9db0745 100644
--- a/.themes/classic/source/_includes/article.html
+++ b/.themes/classic/source/_includes/article.html
@@ -1,9 +1,9 @@
{% unless page.no_header %}
{% if index %}
-
{% endif %}
{% endif %}
diff --git a/_config.yml b/_config.yml
index 26881bc..f90307a 100644
--- a/_config.yml
+++ b/_config.yml
@@ -34,6 +34,8 @@ pagination_dir: blog # Directory base for pagination URLs eg. /blog/page/2/
recent_posts: 5 # Posts in the sidebar Recent Posts section
excerpt_link: "Read on →" # "Continue reading" link text at the bottom of excerpted articles
+titlecase: true # Converts page and post titles to tilecase
+
# list each of the sidebar modules you want to include, in the order you want them to appear.
# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html]
From 1772a8af8f22f2f89d263285be2815ebad6189fa Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 12:02:14 +0200
Subject: [PATCH 32/84] Removes also leading tab from backtick codeblock
---
plugins/backtick_code_block.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/backtick_code_block.rb b/plugins/backtick_code_block.rb
index 6243de6..40e7900 100644
--- a/plugins/backtick_code_block.rb
+++ b/plugins/backtick_code_block.rb
@@ -10,7 +10,7 @@ module BacktickCodeBlock
@lang = nil
@url = nil
@title = nil
- input.gsub /^`{3} *([^\n]+)?\n(.+?)\n`{3}/m do
+ input.gsub(/^`{3} *([^\n]+)?\n(.+?)\n`{3}/m) do
@options = $1 || ''
str = $2
@@ -22,8 +22,8 @@ module BacktickCodeBlock
@caption = "#{$2}"
end
- if str.match(/\A {4}/)
- str = str.gsub /^ {4}/, ''
+ if str.match(/\A( {4}|\t)/)
+ str = str.gsub(/^( {4}|\t)/, '')
end
if @lang.nil? || @lang == 'plain'
code = tableize_code(str.gsub('<','<').gsub('>','>'))
From 82942bd0885afc343e8c6bd14fd3e117b2d6c05a Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 13:07:31 +0200
Subject: [PATCH 33/84] Replaces system call with cross-platform cp_r, fixes
#200
---
Rakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Rakefile b/Rakefile
index 05b9c30..54f98d1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -230,7 +230,7 @@ multitask :push do
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
Rake::Task[:copydot].invoke(public_dir, deploy_dir)
puts "\n## copying #{public_dir} to #{deploy_dir}"
- system "cp -R #{public_dir}/* #{deploy_dir}"
+ cp_r "#{public_dir}/*", deploy_dir
cd "#{deploy_dir}" do
system "git add ."
system "git add -u"
From 21803814bc2d30660fe7e83fb6894c37ea886201 Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 13:37:06 +0200
Subject: [PATCH 34/84] Adds parameter for left aligned pullquotes, fixes #215
---
.themes/classic/sass/base/_typography.scss | 5 ++---
plugins/pullquote.rb | 12 +++++++-----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss
index f248c2e..6055675 100644
--- a/.themes/classic/sass/base/_typography.scss
+++ b/.themes/classic/sass/base/_typography.scss
@@ -115,7 +115,8 @@ blockquote {
}
}
-.pullquote-right:before, .pullquote-left:before {
+.pullquote-right:before,
+.pullquote-left:before {
/* Reset metrics. */
padding: 0;
border: none;
@@ -136,11 +137,9 @@ blockquote {
}
.pullquote-left:before {
-
/* Make left pullquotes align properly. */
float: left;
margin: .5em 1.5em 1em 0;
-
}
/* @extend this to force long lines of continuous text to wrap */
diff --git a/plugins/pullquote.rb b/plugins/pullquote.rb
index 5dd6a55..cf8d22f 100644
--- a/plugins/pullquote.rb
+++ b/plugins/pullquote.rb
@@ -13,18 +13,20 @@
#
#
# When writing longform posts, I find it helpful to include pullquotes, which help those scanning a post discern whether or not a post is helpful.
-# It is important to note, pullquotes are merely visual in presentation and should not appear twice in the text. This is why a CSS only approach # for styling pullquotes is prefered.
+# It is important to note, pullquotes are merely visual in presentation and should not appear twice in the text. This is why a CSS only approach
+# for styling pullquotes is prefered.
#
#
#
-# Strand's modification adds the ability to call this plugin with {% pullquote left %} which duplicates the current behavior of the pullquote plugin, with a left float and appropriate margins.
-# Note: this version of the plugin now creates pullquotes with the class of pullquote-right by default
+# {% pullquote left %} will create a left-aligned pullquote instead.
+#
+# Note: this plugin now creates pullquotes with the class of pullquote-right by default
module Jekyll
class PullquoteTag < Liquid::Block
def initialize(tag_name, markup, tokens)
- markup =~ /left/i ? @align = "left" : @align = "right"
+ @align = (markup =~ /left/i) ? "left" : "right"
super
end
@@ -32,7 +34,7 @@ module Jekyll
output = super
if output.join =~ /\{"\s*(.+)\s*"\}/
@quote = $1
- "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}" # TODO Determine how to makethis span have a left or right flag.
+ "#{output.join.gsub(/\{"\s*|\s*"\}/, '')}"
else
return "Surround your pullquote like this {\" text to be quoted \"}"
end
From 2812bf7c3e4a0496e48767f2368633b31a373e5f Mon Sep 17 00:00:00 2001
From: Frederic Hemberger
Date: Sun, 16 Oct 2011 14:27:21 +0200
Subject: [PATCH 35/84] Adds prev/next link below post, fixes #218
---
.themes/classic/sass/partials/_blog.scss | 4 +++-
.themes/classic/source/_layouts/post.html | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.themes/classic/sass/partials/_blog.scss b/.themes/classic/sass/partials/_blog.scss
index 88c71e9..63e4ee4 100644
--- a/.themes/classic/sass/partials/_blog.scss
+++ b/.themes/classic/sass/partials/_blog.scss
@@ -73,7 +73,9 @@ article {
@extend .sans;
p.meta {
margin-bottom: .8em;
- font-size: .85em;
+ font-size: .85em
+ clear: both;
+ overflow: hidden;
}
.byline + time:before, time +time:before, .comments:before, .byline ~ .categories:before {
@extend .separator;
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index 3b1208d..f61d52a 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -15,6 +15,14 @@ single: true
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
+