Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Post Widget To Display 5-10 posts on homepage #288

Closed
rajputvai opened this Issue Sep 21, 2012 · 3 comments

Comments

Projects
None yet
4 participants

is there any widget to display 5 latest posts of the blog to the hompage, I know this is the feature of the plugin and i m very much interested to contribute this to the plugin. Let me know what you guys have opinion?

Owner

ugisozols commented Nov 23, 2012

AFAIK there isn't such widget and TBH I'm not sure this is needed because it's easy to create one in case it is needed.

@parndt @robyurkowski?

Owner

parndt commented Nov 23, 2012

Not something we need to support in core really. Really easy to do:

<% Refinery::Blog::Post.recent(5).each do |post| %>
  <%= post.title %>
<% end %>

@parndt parndt closed this Nov 23, 2012

I had trouble figuring out how to do this as well.

It's not very discoverable, at least from the point of view of someone who is primarily changing markup and overriding the view templates. It's also a common feature of blogs, and it may help to put that last snippet in a guide or somewhere more prominent.

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