Commit 238a9767 authored by Sylvester Keil's avatar Sylvester Keil

fixed bibtex export to liquid data

#1
parent 3152df77
......@@ -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
......
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