Module: Jekyll::Authors::Utils
- Included in:
- AuthorFeed, AuthorIndex
- Defined in:
- lib/jekyll-authors.rb
Instance Method Summary collapse
-
#author_title_prefix ⇒ String
Returns the ‘author_title_prefix` or “Author: ”.
-
#display_name(author) ⇒ String
Returns the ‘display_name` associated with the author.
Instance Method Details
#author_title_prefix ⇒ String
Returns the ‘author_title_prefix` or “Author: ”
25 26 27 |
# File 'lib/jekyll-authors.rb', line 25 def site.config['author_title_prefix'] || 'Author: ' end |
#display_name(author) ⇒ String
Returns the ‘display_name` associated with the author. If there isn’t one, it returns the nickname.
12 13 14 15 16 17 18 19 20 |
# File 'lib/jekyll-authors.rb', line 12 def display_name() return unless site.config['authors'] if site.config['authors'][] site.config['authors'][]['display_name'] else end end |