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

Factor out names of months.

parent 6b622a18
......@@ -276,39 +276,42 @@ module Jekyll
when 'type'
config['type_names'][value] || value.to_s
when 'month_numeric'
case value
when 1
'January'
when 2
'February'
when 3
'March'
when 4
'April'
when 5
'May'
when 6
'June'
when 7
'July'
when 8
'August'
when 9
'September'
when 10
'October'
when 11
'November'
when 12
'December'
else
'Unknown'
end
month_name(value)
else
value.to_s
end
end
def month_name(month):
case month
when 1
'January'
when 2
'February'
when 3
'March'
when 4
'April'
when 5
'May'
when 6
'June'
when 7
'July'
when 8
'August'
when 9
'September'
when 10
'October'
when 11
'November'
when 12
'December'
else
'Unknown'
end
def suppress_author?
!!@suppress_author
end
......
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