From a0590ca631cc5a6f78ea0d3ad05f0a1c8c97e4f8 Mon Sep 17 00:00:00 2001 From: Rachel Elledge Date: Thu, 21 Mar 2024 17:34:06 -0500 Subject: [PATCH] DOC-3499 Sitewide archived content banner --- config.toml | 3 ++ layouts/partials/flex/body-beforecontent.html | 3 ++ static/theme-flex/style.css | 42 ++++++++++++++++++- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 3499ea128b8..239185368d1 100644 --- a/config.toml +++ b/config.toml @@ -41,6 +41,9 @@ enableGitInfo = true googleAnalytics = "UA-92003007-1" googleTagManager = "GTM-TKZ6J9R" +bannerText = "This site is archived and no longer updated. For the latest Redis documentation, see [https://redis.io/docs/]" +bannerLink = "https://redis.io/docs/" + mac_dl_link = "https://downloads.redisinsight.redislabs.com/latest/redisinsight-mac.dmg" linux_dl_link = "https://downloads.redisinsight.redislabs.com/latest/redisinsight-linux64" windows_dl_link = "https://downloads.redisinsight.redislabs.com/latest/redisinsight-win.msi" diff --git a/layouts/partials/flex/body-beforecontent.html b/layouts/partials/flex/body-beforecontent.html index 7ca89f35c5b..956ac869773 100644 --- a/layouts/partials/flex/body-beforecontent.html +++ b/layouts/partials/flex/body-beforecontent.html @@ -4,6 +4,9 @@ {{ end }} {{ end }}
+ {{ if .Site.Params.bannerText }} + {{ partial "banner.html" . }} + {{ end }}