Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
5d843715
Commit
5d843715
authored
Jul 12, 2012
by
Sylvester Keil
Browse files
fixed 1.8 compatibility issue #3
parent
fe403a98
Changes
4
Hide whitespace changes
Inline
Side-by-side
features/support/env.rb
View file @
5d843715
...
...
@@ -3,7 +3,6 @@ require 'test/unit'
require
'jekyll/scholar'
require
'debugger'
...
...
lib/jekyll/scholar/generators/details.rb
View file @
5d843715
...
...
@@ -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
)
...
...
lib/jekyll/scholar/utilities.rb
View file @
5d843715
...
...
@@ -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
...
...
lib/jekyll/scholar/version.rb
View file @
5d843715
module
Jekyll
class
Scholar
VERSION
=
'0.0.
8
'
.
freeze
VERSION
=
'0.0.
9
'
.
freeze
end
end
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment