From de2e28703a50bfe5c8ba3cff9f627aef8fef5ec6 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 17 Mar 2017 23:14:36 -0400 Subject: [PATCH] Ensure description --- website/config.rb | 2 +- website/source/index.html.erb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/website/config.rb b/website/config.rb index 6e91f9b534..5e0a66e8c1 100644 --- a/website/config.rb +++ b/website/config.rb @@ -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 diff --git a/website/source/index.html.erb b/website/source/index.html.erb index ec4e011bbb..594c4662e2 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -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" %>