Class: JekyllIndexPages::ArchiveURL
- Defined in:
- lib/jekyll-index-pages/tags/archive-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/archive-url.rb', line 7 def filter_config(config) _, item = config.detect { |key, value| key == "archive" } item end |
#has_kind?(site, kind) ⇒ Boolean
3 4 5 |
# File 'lib/jekyll-index-pages/tags/archive-url.rb', line 3 def has_kind?(site, kind) site.data["archive"].key?(kind) end |