use site_description as page_description fallback

This commit is contained in:
Ben Balter 2017-05-05 09:27:17 -04:00
parent e637154c53
commit 604b23e8fc
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 3 additions and 3 deletions

View File

@ -67,9 +67,9 @@ module Jekyll
end
def description
@description ||= format_string(
page["description"] || page["excerpt"] || site["description"]
)
@description ||= begin
format_string(page["description"] || page["excerpt"]) || site_description
end
end
# Returns a nil or a hash representing the author