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 ...@@ -276,39 +276,42 @@ module Jekyll
when 'type' when 'type'
config['type_names'][value] || value.to_s config['type_names'][value] || value.to_s
when 'month_numeric' when 'month_numeric'
case value month_name(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
else else
value.to_s value.to_s
end end
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? def suppress_author?
!!@suppress_author !!@suppress_author
end 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