Class: JekyllIndexPages::TagURL

Inherits:
URLTag
  • Object
show all
Defined in:
lib/jekyll-index-pages/tags/tag-url.rb

Constant Summary

Constants inherited from URLTag

URLTag::STRING_SYNTAX, URLTag::VARIABLE_SYNTAX

Instance Method Summary collapse

Methods inherited from URLTag

#initialize, #parse_params, #render

Constructor Details

This class inherits a constructor from JekyllIndexPages::URLTag

Instance Method Details

#filter_config(config) ⇒ Object



7
8
9
10
# File 'lib/jekyll-index-pages/tags/tag-url.rb', line 7

def filter_config(config)
  _, item = config.detect { |key, value| key == "tags" }
  item
end

#has_kind?(site, kind) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/jekyll-index-pages/tags/tag-url.rb', line 3

def has_kind?(site, kind)
  site.tags.key?(kind)
end