website: set a default page description

This is related to the updated unfurling behavior, see
https://github.com/hashicorp/terraform-website/pull/242.
This commit is contained in:
Jack Pearkes 2018-04-16 14:23:09 -07:00
parent 0285617a02
commit 1cf3b40472
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(' ')