mirror of https://github.com/status-im/consul.git
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:
parent
0285617a02
commit
1cf3b40472
|
@ -45,7 +45,7 @@ helpers do
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def description_for(page)
|
def description_for(page)
|
||||||
description = (page.data.description || "")
|
description = (page.data.description || "Consul by HashiCorp")
|
||||||
.gsub('"', '')
|
.gsub('"', '')
|
||||||
.gsub(/\n+/, ' ')
|
.gsub(/\n+/, ' ')
|
||||||
.squeeze(' ')
|
.squeeze(' ')
|
||||||
|
|
Loading…
Reference in New Issue