Skip to content
This repository was archived by the owner on Nov 17, 2018. It is now read-only.

Commit 1fcf644

Browse files
committed
Upgrading to latest Octopress
2 parents 758d108 + 4fdae37 commit 1fcf644

16 files changed

+115
-813
lines changed

.themes/classic/source/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
{% endfor %}
1313
<div class="pagination">
1414
{% if paginator.next_page %}
15-
<a class="prev" href="{{paginator.next_page}}">&larr; Older</a>
15+
<a class="prev" href="{{paginator.next_page_path}}">&larr; Older</a>
1616
{% endif %}
1717
<a href="/blog/archives">Blog Archives</a>
1818
{% if paginator.previous_page %}
19-
<a class="next" href="{{paginator.previous_page}}">Newer &rarr;</a>
19+
<a class="next" href="{{paginator.previous_page_path}}">Newer &rarr;</a>
2020
{% endif %}
2121
</div>
2222
</div>

.themes/classic/source/javascripts/octopress.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ function addSidebarToggler() {
1717
$('#content').append('<span class="toggle-sidebar"></span>');
1818
$('.toggle-sidebar').bind('click', function(e) {
1919
e.preventDefault();
20-
if ($('body').hasClass('collapse-sidebar')) {
21-
$('body').removeClass('collapse-sidebar');
22-
} else {
23-
$('body').addClass('collapse-sidebar');
24-
}
20+
$('body').toggleClass('collapse-sidebar');
2521
});
2622
}
2723
var sections = $('aside.sidebar > section');

Gemfile

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ source "https://rubygems.org"
22

33
ruby '2.1.1'
44

5-
gem 'rake'
6-
gem 'jekyll', '~> 0.12'
5+
gem 'rake', '~> 10.0'
6+
gem 'jekyll', '~> 2.0'
7+
gem 'jekyll-page-hooks', '~> 1.2'
8+
gem 'jekyll-date-format', '~> 1.0'
9+
gem 'jekyll-sitemap'
710
gem 'rdiscount', '~> 2.0'
8-
# gem 'pygments.rb', '~> 0.3.4'
911
gem 'RedCloth', '~> 4.2.9'
10-
gem 'haml', '~> 3.1'
12+
gem 'haml', '~> 4.0'
1113
gem 'compass', '~> 0.12.2'
12-
gem 'sass', '~> 3.2'
13-
gem 'sass-globbing', '~> 1.0'
14+
gem 'sass-globbing', '~> 1.0.0'
1415
gem 'rubypants', '~> 0.2.0'
1516
gem 'stringex', '~> 1.4.0'
16-
gem 'liquid', '~> 2.3.0'
1717

1818
# Used for Heroku deploys
1919
gem 'rack', '~> 1.4'
@@ -25,5 +25,4 @@ group :development do
2525
gem 'rb-fsevent', '~> 0.9'
2626
gem 'heroku'
2727
gem 'shotgun'
28-
gem 'directory_watcher', '1.4.1'
2928
end

Gemfile.lock

+86-38
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,111 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
RedCloth (4.2.9)
5-
addressable (2.3.5)
6-
chunky_png (1.3.0)
5+
addressable (2.3.6)
6+
blankslate (2.1.2.4)
7+
celluloid (0.15.2)
8+
timers (~> 1.1.0)
9+
chunky_png (1.3.1)
710
classifier (1.3.4)
811
fast-stemmer (>= 1.0.0)
9-
compass (0.12.3)
12+
coffee-script (2.2.0)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.7.0)
16+
colorator (0.1)
17+
compass (0.12.6)
1018
chunky_png (~> 1.2)
1119
fssm (>= 0.2.7)
12-
sass (= 3.2.14)
20+
sass (~> 3.2.19)
1321
daemons (1.1.9)
14-
directory_watcher (1.4.1)
1522
eventmachine (1.0.3)
16-
excon (0.32.1)
23+
excon (0.38.0)
24+
execjs (2.2.1)
1725
fast-stemmer (1.0.2)
26+
ffi (1.9.3)
1827
fssm (0.2.10)
19-
haml (3.1.8)
20-
heroku (3.6.0)
28+
haml (4.0.5)
29+
tilt
30+
heroku (3.9.1)
2131
heroku-api (~> 0.3.17)
2232
launchy (>= 0.3.2)
2333
netrc (~> 0.7.7)
2434
rest-client (~> 1.6.1)
2535
rubyzip
26-
heroku-api (0.3.17)
36+
heroku-api (0.3.18)
2737
excon (~> 0.27)
28-
multi_json (~> 1.8.2)
29-
jekyll (0.12.1)
38+
multi_json (~> 1.8)
39+
jekyll (2.1.0)
3040
classifier (~> 1.3)
31-
directory_watcher (~> 1.1)
32-
kramdown (~> 0.14)
33-
liquid (~> 2.3)
34-
maruku (~> 0.5)
35-
pygments.rb (~> 0.3.2)
36-
kramdown (0.14.2)
41+
colorator (~> 0.1)
42+
jekyll-coffeescript (~> 1.0)
43+
jekyll-gist (~> 1.0)
44+
jekyll-paginate (~> 1.0)
45+
jekyll-sass-converter (~> 1.0)
46+
jekyll-watch (~> 1.0)
47+
kramdown (~> 1.3)
48+
liquid (~> 2.6.1)
49+
mercenary (~> 0.3.3)
50+
pygments.rb (~> 0.6.0)
51+
redcarpet (~> 3.1)
52+
safe_yaml (~> 1.0)
53+
toml (~> 0.1.0)
54+
jekyll-coffeescript (1.0.0)
55+
coffee-script (~> 2.2)
56+
jekyll-date-format (1.0.0)
57+
jekyll (>= 1.0.0)
58+
jekyll-gist (1.1.0)
59+
jekyll-page-hooks (1.3.0)
60+
jekyll (>= 2.0.0)
61+
jekyll-paginate (1.0.0)
62+
jekyll-sass-converter (1.0.0)
63+
sass (~> 3.2)
64+
jekyll-sitemap (0.5.0)
65+
jekyll-watch (1.0.0)
66+
listen (~> 2.7)
67+
json (1.8.1)
68+
kramdown (1.4.0)
3769
launchy (2.4.2)
3870
addressable (~> 2.3)
39-
liquid (2.3.0)
40-
maruku (0.7.1)
41-
mime-types (2.2)
42-
multi_json (1.8.4)
71+
liquid (2.6.1)
72+
listen (2.7.9)
73+
celluloid (>= 0.15.2)
74+
rb-fsevent (>= 0.9.3)
75+
rb-inotify (>= 0.9)
76+
mercenary (0.3.3)
77+
mime-types (1.25.1)
78+
multi_json (1.10.1)
4379
netrc (0.7.7)
80+
parslet (1.5.0)
81+
blankslate (~> 2.0)
4482
posix-spawn (0.3.8)
45-
pygments.rb (0.3.7)
83+
pygments.rb (0.6.0)
4684
posix-spawn (~> 0.3.6)
4785
yajl-ruby (~> 1.1.0)
4886
rack (1.5.2)
49-
rack-protection (1.5.2)
87+
rack-protection (1.5.3)
5088
rack
5189
rack-rewrite (1.5.0)
52-
rake (10.1.1)
90+
rake (10.3.2)
5391
rb-fsevent (0.9.4)
54-
rdiscount (2.1.7)
55-
rest-client (1.6.7)
56-
mime-types (>= 1.16)
92+
rb-inotify (0.9.5)
93+
ffi (>= 0.5.0)
94+
rdiscount (2.1.7.1)
95+
rdoc (4.1.1)
96+
json (~> 1.4)
97+
redcarpet (3.1.2)
98+
rest-client (1.6.8)
99+
mime-types (~> 1.16)
100+
rdoc (>= 2.4.2)
57101
rubypants (0.2.0)
58-
rubyzip (1.1.2)
59-
sass (3.2.14)
60-
sass-globbing (1.1.0)
102+
rubyzip (1.1.6)
103+
safe_yaml (1.0.3)
104+
sass (3.2.19)
105+
sass-globbing (1.0.0)
61106
sass (>= 3.1)
62107
shotgun (0.9)
63108
rack (>= 1.0)
64-
sinatra (1.4.4)
109+
sinatra (1.4.5)
65110
rack (~> 1.4)
66111
rack-protection (~> 1.4)
67112
tilt (~> 1.3, >= 1.3.4)
@@ -71,6 +116,9 @@ GEM
71116
eventmachine (>= 1.0.0)
72117
rack (>= 1.0.0)
73118
tilt (1.4.1)
119+
timers (1.1.0)
120+
toml (0.1.1)
121+
parslet (~> 1.5.0)
74122
yajl-ruby (1.1.0)
75123

76124
PLATFORMS
@@ -79,19 +127,19 @@ PLATFORMS
79127
DEPENDENCIES
80128
RedCloth (~> 4.2.9)
81129
compass (~> 0.12.2)
82-
directory_watcher (= 1.4.1)
83-
haml (~> 3.1)
130+
haml (~> 4.0)
84131
heroku
85-
jekyll (~> 0.12)
86-
liquid (~> 2.3.0)
132+
jekyll (~> 2.0)
133+
jekyll-date-format (~> 1.0)
134+
jekyll-page-hooks (~> 1.2)
135+
jekyll-sitemap
87136
rack (~> 1.4)
88137
rack-rewrite
89-
rake
138+
rake (~> 10.0)
90139
rb-fsevent (~> 0.9)
91140
rdiscount (~> 2.0)
92141
rubypants (~> 0.2.0)
93-
sass (~> 3.2)
94-
sass-globbing (~> 1.0)
142+
sass-globbing (~> 1.0.0)
95143
shotgun
96144
sinatra (~> 1.4)
97145
stringex (~> 1.4.0)

Rakefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ posts_dir = "_posts" # directory for blog files
2525
themes_dir = ".themes" # directory for blog files
2626
new_post_ext = "markdown" # default new post file extension when using the new_post task
2727
new_page_ext = "markdown" # default new page file extension when using the new_page task
28-
server_port = "4000" # port for preview server eg. localhost:4000
28+
server_port = "5000" # port for preview server eg. localhost:4000
2929

3030
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
3131
puts '## Set the codepage to 65001 for Windows machines'
@@ -57,15 +57,15 @@ task :generate do
5757
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
5858
puts "## Generating Site with Jekyll"
5959
system "compass compile --css-dir #{source_dir}/stylesheets"
60-
system "jekyll"
60+
system "jekyll build"
6161
end
6262

6363
desc "Watch the site and regenerate when it changes"
6464
task :watch do
6565
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
6666
puts "Starting to watch source with Jekyll and Compass."
6767
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
68-
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll --auto")
68+
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll build --watch")
6969
compassPid = Process.spawn("compass watch")
7070

7171
trap("INT") {
@@ -81,7 +81,7 @@ task :preview do
8181
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
8282
puts "Starting to watch source with Jekyll and Compass. Starting Rack on port #{server_port}"
8383
system "compass compile --css-dir #{source_dir}/stylesheets" unless File.exist?("#{source_dir}/stylesheets/screen.css")
84-
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll --auto")
84+
jekyllPid = Process.spawn({"OCTOPRESS_ENV"=>"preview"}, "jekyll build --watch")
8585
compassPid = Process.spawn("compass watch")
8686
rackupPid = Process.spawn("rackup --port #{server_port}")
8787

@@ -187,8 +187,8 @@ task :update_style, :theme do |t, args|
187187
end
188188
mv "sass", "sass.old"
189189
puts "## Moved styles into sass.old/"
190-
cp_r "#{themes_dir}/"+theme+"/sass/", "sass"
191-
cp_r "sass/custom/.", "sass.old/custom"
190+
cp_r "#{themes_dir}/"+theme+"/sass/", "sass", :remove_destination=>true
191+
cp_r "sass.old/custom/.", "sass/custom/", :remove_destination=>true
192192
puts "## Updated Sass ##"
193193
end
194194

@@ -261,8 +261,8 @@ multitask :push do
261261
cp_r "#{public_dir}/.", deploy_dir
262262
cd "#{deploy_dir}" do
263263
system "git add -A"
264-
puts "\n## Committing: Site updated at #{Time.now.utc}"
265264
message = "Site updated at #{Time.now.utc}"
265+
puts "\n## Committing: #{message}"
266266
system "git commit -m \"#{message}\""
267267
puts "\n## Pushing generated #{deploy_dir} website"
268268
system "git push origin #{deploy_branch}"

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ rdiscount:
3939
- autolink
4040
- footnotes
4141
- smart
42-
pygments: false # default python pygments have been replaced by pygments.rb
42+
highlighter: pygments # default python pygments have been replaced by pygments.rb
4343

4444
paginate: 10 # Posts per page on the blog index
45-
pagination_dir: # Directory base for pagination URLs eg. /blog/page/2/
45+
paginate_path: "posts/:num" # Directory base for pagination URLs eg. /posts/2/
4646
recent_posts: 5 # Posts in the sidebar Recent Posts section
4747
excerpt_link: "Read on &rarr;" # "Continue reading" link text at the bottom of excerpted articles
48+
excerpt_separator: "<!--more-->"
4849

4950
titlecase: true # Converts page and post titles to titlecase
5051

plugins/date.rb

-81
This file was deleted.

0 commit comments

Comments
 (0)