diff --git a/lib/jekyll-seo-tag/drop.rb b/lib/jekyll-seo-tag/drop.rb index e5cd5f7..632c2d4 100644 --- a/lib/jekyll-seo-tag/drop.rb +++ b/lib/jekyll-seo-tag/drop.rb @@ -246,6 +246,10 @@ module Jekyll site_author_hash(author_string) || { "name" => author_string } end + # Given a string representing the current document's author, attempt + # to retrieve additional metadata from site.data.authors, if present + # + # Returns the author hash def site_author_hash(author_string) return unless site.data["authors"] && site.data["authors"].is_a?(Hash) author_hash = site.data["authors"][author_string]