website: set a default page description

This is related to the updated unfurling behavior, see
https://github.com/hashicorp/terraform-website/pull/242.
pull/4035/head
Jack Pearkes 7 years ago
parent 0285617a02
commit 1cf3b40472

@ -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(' ')

Loading…
Cancel
Save