Skip to content

Commit

Permalink
Add :feed_uri to @item.atributes for archive pages with feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
andatche committed Mar 12, 2012
1 parent 560cf75 commit fd48d3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/brightbox-nanoc-helpers/blogging.rb
Expand Up @@ -214,6 +214,7 @@ def paginate_posts_at path, posts, page_title="Blog", feed=false
:next_page => post_pages[page_num] != nil,
:pagination_path => path,
:posts => subarticles,
:feed_uri => (feed_path if feed == true)
},
# First page is at /blog, every page thereafter at /blog/page/:i
(page_num == 1 ? path : "#{path}page/#{page_num}/")
Expand Down

0 comments on commit fd48d3a

Please sign in to comment.