Commit ee753709 authored by Sylvester Keil's avatar Sylvester Keil

better details page names

#1
parent e38a4d3d
......@@ -10,7 +10,7 @@ module Jekyll
@config = Scholar.defaults.merge(site.config['scholar'] || {})
@name = [entry.key, 'html'].join('.')
@name = filename_for(entry)
process(@name)
read_yaml(File.join(base, '_layouts'), config['details_layout'])
......@@ -20,6 +20,14 @@ module Jekyll
private
def filename_for(entry)
n = entry.key.dup
n.gsub!(/[:\s]+/, '_')
[n, 'html'].join('.')
end
def liquidify(entry)
data['entry'] = {}
......
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