Skip to content

Commit

Permalink
Fixed bug with invalid blog date
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed May 15, 2014
1 parent d365171 commit b2b59df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docpad.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ docpadConfig = {
d = date.getDate()
day = "#{d}<sup>#{daySuffix(d)}</sup>"
month = months[date.getMonth()]
year = if (new Date).getFullYear() isnt date.getFullYear() then ", #{m[1]}" else ''
year = if (new Date).getFullYear() isnt date.getFullYear() then ", #{date.getFullYear()}" else ''
"#{month} #{day}#{year}"

nextBlogPost: (url) ->
Expand Down

0 comments on commit b2b59df

Please sign in to comment.