Ensure description

This commit is contained in:
Seth Vargo 2017-03-17 23:14:36 -04:00
parent e774fe460d
commit de2e28703a
No known key found for this signature in database
GPG key ID: C921994F9C27E0FF
2 changed files with 9 additions and 1 deletions

View file

@ -27,7 +27,7 @@ helpers do
#
# @return [String]
def description_for(page)
return escape_html(page.data.description || "")
return escape_html((page.data.description || "").gsub(/\n+/, ' ').squeeze(' '))
end
# This helps by setting the "active" class for sidebar nav elements

View file

@ -1,3 +1,11 @@
---
description: |-
Vault secures, stores, and tightly controls access to tokens, passwords,
certificates, API keys, and other secrets in modern computing. Vault handles
leasing, key revocation, key rolling, auditing, and provides secrets as a
service through a unified API.
---
<%= partial "layouts/sidebar" %>
<div id="demo-app"></div>