Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
567a65a1
Commit
567a65a1
authored
Jan 11, 2016
by
Hendrik van Antwerpen
Browse files
Factor out names of months.
parent
6b622a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/utilities.rb
View file @
567a65a1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment