Skip to content

Commit

Permalink
lib/jekyll/tagging.rb (generate): Added support for Jekyll::Site#add_…
Browse files Browse the repository at this point in the history
…payload.
  • Loading branch information
blackwinter committed May 23, 2012
1 parent 4088371 commit 80430a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jekyll/tagging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def generate(site)
warn 'WARNING: You have to define a tag_page_layout in onfiguration file.'
end

site.config.update({ 'tag_data' => calculate_tag_cloud(site) })
t = { 'tag_data' => calculate_tag_cloud(site) }
site.respond_to?(:add_payload) ? site.add_payload(t) : site.config.update(t)
end

# Generates a page per tag and adds them to all the pages of +site+.
Expand Down

0 comments on commit 80430a0

Please sign in to comment.