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'
require 'jekyll/scholar'
require 'debugger'
......
......@@ -47,7 +47,7 @@ module Jekyll
if generate_details?
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.write(site.dest)
......
......@@ -24,7 +24,7 @@ module Jekyll
b = bibliography[config['query']]
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
end
......@@ -54,7 +54,7 @@ module Jekyll
end
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
def base_url
......
module Jekyll
class Scholar
VERSION = '0.0.8'.freeze
VERSION = '0.0.9'.freeze
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