Created
May 7, 2013 05:57
-
-
Save imathis/5530530 to your computer and use it in GitHub Desktop.
Diff for adding footnotes to Octopress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss | |
index 85256f0..9a6bbac 100644 | |
--- a/.themes/classic/sass/base/_typography.scss | |
+++ b/.themes/classic/sass/base/_typography.scss | |
@@ -80,10 +80,12 @@ strong { font-weight: bold; } | |
em { font-style: italic; } | |
-sup, sub { font-size: 0.8em; position: relative; display: inline-block; } | |
+sup, sub { font-size: 0.75em; position: relative; display: inline-block; padding: 0 .2em; line-height: .8em;} | |
sup { top: -.5em; } | |
sub { bottom: -.5em; } | |
+a[rev='footnote']{ font-size: .75em; padding: 0 .3em; line-height: 1; } | |
+ | |
q { font-style: italic; | |
&:before { content: "\201C"; } | |
&:after { content: "\201D"; } | |
@@ -99,8 +101,6 @@ abbr, acronym { border-bottom: 1px dotted; cursor: help; } | |
pre, code, tt { @extend .mono; } | |
-sub, sup { line-height: 0; } | |
- | |
hr { margin-bottom: 0.2em; } | |
small { font-size: .8em; } | |
@@ -161,3 +161,4 @@ article blockquote { | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
+ | |
diff --git a/Gemfile b/Gemfile | |
index 5bd1264..cabfa56 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -3,7 +3,7 @@ source "http://rubygems.org" | |
group :development do | |
gem 'rake', '~> 0.9' | |
gem 'jekyll', '~> 0.12' | |
- gem 'rdiscount', '~> 1.6.8' | |
+ gem 'rdiscount', '~> 2.0.7' | |
gem 'pygments.rb', '~> 0.3.4' | |
gem 'RedCloth', '~> 4.2.9' | |
gem 'haml', '~> 3.1.7' | |
diff --git a/_config.yml b/_config.yml | |
index 1397f8d..74d35ba 100644 | |
--- a/_config.yml | |
+++ b/_config.yml | |
@@ -34,6 +34,11 @@ plugins: plugins | |
code_dir: downloads/code | |
category_dir: blog/categories | |
markdown: rdiscount | |
+rdiscount: | |
+ extensions: | |
+ - autolink | |
+ - footnotes | |
+ - smart | |
pygments: false # default python pygments have been replaced by pygments.rb | |
paginate: 10 # Posts per page on the blog index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment