Commit 5d843715 authored by Sylvester Keil's avatar Sylvester Keil

fixed 1.8 compatibility issue #3

parent fe403a98
...@@ -3,7 +3,6 @@ require 'test/unit' ...@@ -3,7 +3,6 @@ require 'test/unit'
require 'jekyll/scholar' require 'jekyll/scholar'
require 'debugger' require 'debugger'
......
...@@ -47,7 +47,7 @@ module Jekyll ...@@ -47,7 +47,7 @@ module Jekyll
if generate_details? if generate_details?
entries.each do |entry| entries.each do |entry|
details = Details.new(site, site.source, details_path, entry) details = Details.new(site, site.source, File.join('', details_path), entry)
details.render(site.layouts, site.site_payload) details.render(site.layouts, site.site_payload)
details.write(site.dest) details.write(site.dest)
......
...@@ -24,7 +24,7 @@ module Jekyll ...@@ -24,7 +24,7 @@ module Jekyll
b = bibliography[config['query']] b = bibliography[config['query']]
unless config['sort_by'] == 'none' unless config['sort_by'] == 'none'
b.sort_by! { |e| e[config['sort_by']].to_s } b = b.sort_by { |e| e[config['sort_by']].to_s }
b.reverse! if config['order'] =~ /^(desc|reverse)/i b.reverse! if config['order'] =~ /^(desc|reverse)/i
end end
...@@ -54,7 +54,7 @@ module Jekyll ...@@ -54,7 +54,7 @@ module Jekyll
end end
def details_link_for(entry, base = base_url) def details_link_for(entry, base = base_url)
[base, details_path, details_file_for(entry)].join('/') File.join(base, details_path, details_file_for(entry))
end end
def base_url def base_url
......
module Jekyll module Jekyll
class Scholar class Scholar
VERSION = '0.0.8'.freeze VERSION = '0.0.9'.freeze
end end
end end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment