Module: Jekyll::Podcast::TagPageGenerator

Defined in:
lib/jekyll/podcast/tag_page_generator.rb

Overview

Generator to create tag pages for each tag on the site

Defined Under Namespace

Classes: Generator, TagPage

Class Method Summary collapse

Class Method Details



38
39
40
41
42
43
44
# File 'lib/jekyll/podcast/tag_page_generator.rb', line 38

def self.permalink(tag, site)
  if site.data['tag_permalinks'] && site.data['tag_permalinks'][tag]
    site.data['tag_permalinks'][tag]
  else
    "/#{Jekyll::Utils.slugify(tag)}/"
  end
end