blob: 42e6f9c0f0b97ee797a493b49a25da7a267f77ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module BlogHelper
def recent_blog_summaries(path)
root = StaticPage.find(path)
if root
pages = root.all_children.order_by(:posted_at, :direction => :desc).limit(PAGINATION_SIZE)
haml do
pages.each do |page|
haml render(:partial => 'layouts/blog/summary', :locals => {:page => page})
end
end
end
end
def news_feed_link
link_to(image_tag('/img/feed-icon-14x14.png'), "/#{I18n.locale}/news.atom")
end
end
|