Class: JekyllIndexPages::AuthorURL

Inherits:
URLTag
  • Object
show all
Defined in:
lib/jekyll-index-pages/tags/author-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/author-url.rb', line 7

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

#has_kind?(site, kind) ⇒ Boolean

Returns:

  • (Boolean)


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

def has_kind?(site, kind)
  site.data["authors"].key?(kind)
end