_plugins/TagPage.rb
# Generate tag page and atom feed for each tag used in the blogs
Generate tag page and atom feed for each tag used in the blogs
Generate tag page and atom feed for each tag used in the blogs
def generate(site)
      if site.layouts.key? 'tagpage'
        site.tags.each_key do |tag|
          site.pages << TagPage.new(site, site.source, File.join('blog/tag', tag), tag)
          site.pages << TagAtom.new(site, site.source, File.join('blog/atom'), tag)
        end
      end
    end
def generate ( site ) if site . layouts . key? 'tagpage' site . tags . each_key do | tag | site . pages << TagPage . new ( site , site . source , File . join ( 'blog/tag' , tag ) , tag ) site . pages << TagAtom . new ( site , site . source , File . join ( 'blog/atom' ) , tag ) end end end
Generate tag page and atom feed for each tag used in the blogs
Generate tag page and atom feed for each tag used in the blogs
site
<not_specific>