Commit 2f1f200a authored by Sylvester Keil's avatar Sylvester Keil

Fix group_by local override

See #127
parent 7d4f6b49
......@@ -18,7 +18,7 @@ module Jekyll
module Utilities
attr_reader :config, :site, :context, :prefix, :text, :offset, :max, :relative, :group_by
attr_reader :config, :site, :context, :prefix, :text, :offset, :max, :relative
......@@ -203,11 +203,7 @@ module Jekyll
end
def group_by
if group_by.nil? || group_by.empty?
@group_by = config['group_by']
else
@group_by = 'none'
end
@group_by ||= config['group_by']
end
def group?
......
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