Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SamWhited/3261418 to your computer and use it in GitHub Desktop.
Save SamWhited/3261418 to your computer and use it in GitHub Desktop.
Remove titlecase from Brandon Mathis' blockquote plugin
From 9b679e42b946eb140d2c57a7ec4afa6d42d1d097 Mon Sep 17 00:00:00 2001
From: Sam Whited <[email protected]>
Date: Sat, 4 Aug 2012 23:27:41 -0400
Subject: [PATCH] Remove titlecase from blockquote
---
plugins/blockquote.rb | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb
index 62e7d14..2f6871e 100644
--- a/plugins/blockquote.rb
+++ b/plugins/blockquote.rb
@@ -14,7 +14,6 @@
# <strong>Bobby Willis</strong><cite><a href="http://google.com/search?q=pants">The Search For Bobby's Pants</a>
# </blockquote>
#
-require './plugins/titlecase.rb'
module Jekyll
@@ -30,14 +29,14 @@ module Jekyll
if markup =~ FullCiteWithTitle
@by = $1
@source = $2 + $3
- @title = $4.titlecase
+ @title = $4
elsif markup =~ FullCite
@by = $1
@source = $2 + $3
elsif markup =~ Author
if $1 =~ /([^,]+),([^,]+)/
@by = $1
- @title = $2.titlecase
+ @title = $2
else
@by = $1
end
--
1.7.11.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment