Archive widget not showing present month #327

Closed
Kardans opened this Issue Apr 24, 2013 · 2 comments

Comments

Projects
None yet
3 participants

Kardans commented Apr 24, 2013

I'm using refinerycms-blog-2.0.4 but there's seems to be a problem with archive widget. All previous month names with post are showing except present month. I also have post in this present month. Any idea!?

I got the same issue, does any body luck with this issue ?

Owner

ugisozols commented Jun 24, 2013

You can use decorator to override method which gets archive dates:

# app/decorators/helpers/refinery/blog/posts_helper_decorator.rb
Refinery::Blog::PostsHelper.module_eval do
  def blog_archive_dates
    Refinery::Blog::Post.published_dates_older_than(Time.now)
  end
end

This way it will include current month as well.

@ugisozols ugisozols closed this Jun 24, 2013

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