Skip to content

fixed issue #2#28

Open
rchrzo wants to merge 3 commits into
sf-wdi-25:masterfrom
rchrzo:iss_2
Open

fixed issue #2#28
rchrzo wants to merge 3 commits into
sf-wdi-25:masterfrom
rchrzo:iss_2

Conversation

@rchrzo

@rchrzo rchrzo commented Feb 5, 2016

Copy link
Copy Markdown

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
Copy Markdown
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

rchrzo commented Feb 5, 2016

Copy link
Copy Markdown
Author

updated original comment

@rchrzo

rchrzo commented Feb 5, 2016

Copy link
Copy Markdown
Author

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