Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
238a9767
Commit
238a9767
authored
Apr 27, 2012
by
Sylvester Keil
Browse files
fixed bibtex export to liquid data
#1
parent
3152df77
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/generators/details.rb
View file @
238a9767
...
...
@@ -15,8 +15,22 @@ module Jekyll
process
(
@name
)
read_yaml
(
File
.
join
(
base
,
'_layouts'
),
config
[
'details_layout'
])
data
[
'entry'
]
=
entry
liquidify
(
entry
)
end
private
def
liquidify
(
entry
)
data
[
'entry'
]
=
{}
data
[
'entry'
][
'key'
]
=
entry
.
key
data
[
'entry'
][
'type'
]
=
entry
.
type
entry
.
fields
.
each
do
|
key
,
value
|
data
[
'entry'
][
key
.
to_s
]
=
value
.
to_s
end
end
end
class
DetailsGenerator
<
Generator
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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