From a8fa4b8ed1ea6be20478cf97f87e92e5f9ccdcab Mon Sep 17 00:00:00 2001 From: Rachel Elledge <86307637+rrelledge@users.noreply.github.com> Date: Mon, 8 Apr 2024 13:35:34 -0500 Subject: [PATCH] DOC-3499 Sitewide archived content banner (#3238) --- config.toml | 3 +++ layouts/partials/flex/body-beforecontent.html | 6 +++--- static/theme-flex/style.css | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index 5e3964140e8..251e5c2e2b8 100644 --- a/config.toml +++ b/config.toml @@ -42,6 +42,9 @@ menushortcutsnewtab = false # set true to open shortcuts links to a new tab/wind googleAnalytics = "UA-92003007-1" googleTagManager = "GTM-KNWQXKB" +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 209bfba7e6c..def67721f70 100644 --- a/layouts/partials/flex/body-beforecontent.html +++ b/layouts/partials/flex/body-beforecontent.html @@ -3,10 +3,10 @@ {{ partial "gtm-body" . | safeHTML }} {{ end }} {{ end }} -{{ if .Site.Params.bannerText }} - {{ partial "banner.html" . }} -{{ end }}
+ {{ if .Site.Params.bannerText }} + {{ partial "banner.html" . }} + {{ end }}