Merge pull request #4035 from hashicorp/website-description-default

website: set a default page description
This commit is contained in:
Jack Pearkes 2018-04-20 08:25:11 -07:00 committed by GitHub
commit 5bb45bf954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ helpers do
#
# @return [String]
def description_for(page)
description = (page.data.description || "")
description = (page.data.description || "Consul by HashiCorp")
.gsub('"', '')
.gsub(/\n+/, ' ')
.squeeze(' ')