Class: Jekyll::AmethystPlugin::AuthorPageWithoutAFile

Inherits:
PageWithoutAFile
  • Object
show all
Defined in:
lib/jekyll-theme-amethyst.rb

Instance Method Summary collapse

Instance Method Details

#templateObject



45
46
47
48
49
50
# File 'lib/jekyll-theme-amethyst.rb', line 45

def template
	# The permalink template, e.g. customize to "/blog/author/:author/"
	# on sites with both API docs and a blog.
	author_permalink = site.config["amethyst"]["author_permalink"] || "/author/:author"
	Utils.add_permalink_suffix(author_permalink, site.permalink_style)
end

#url_placeholdersObject



52
53
54
55
56
# File 'lib/jekyll-theme-amethyst.rb', line 52

def url_placeholders
	super.merge({
		"author" => data["author"]
	})
end