Skip to content

Conversation

@rchrzo
Copy link

@rchrzo rchrzo commented Feb 5, 2016

fixed issue #3 as well: all due to a month off-one error in the archives_sidebar.rb, and in the view _content.html.erb. essentially it loops through entry.month and uses %13 to fix the problem


@archives = article_counts.map do |entry|
month = (entry.month.to_i%12)+1
month = (entry.month.to_i%13)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain what %13 does and how it resolves this issue.

@rchrzo
Copy link
Author

rchrzo commented Feb 5, 2016

updated original comment

@rchrzo
Copy link
Author

rchrzo commented Feb 5, 2016

I don't understand what you want me to do.
http://giphy.com/gifs/JIX9t2j0ZTN9S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants