greyblake / blogo

Mountable blog engine for Ruby on Rails
MIT License
105 stars 55 forks source link

yield recent posts and tags #60

Closed ghost closed 7 years ago

ghost commented 7 years ago

How to yield recent posts and tags? I`m trying to prepare custom layout.

greyblake commented 7 years ago

You can fetch recent posts by calling

# Get last 3 posts
Blogo::Post.order("DESC created_at").last(3)

Same with tags.