Commit 567a65a1 authored by Hendrik van Antwerpen's avatar Hendrik van Antwerpen

Factor out names of months.

parent 6b622a18
......@@ -276,7 +276,14 @@ module Jekyll
when 'type'
config['type_names'][value] || value.to_s
when 'month_numeric'
case value
month_name(value)
else
value.to_s
end
end
def month_name(month):
case month
when 1
'January'
when 2
......@@ -304,10 +311,6 @@ module Jekyll
else
'Unknown'
end
else
value.to_s
end
end
def suppress_author?
!!@suppress_author
......
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