From 8a7700c23935cc6983390df77c6759aff430df96 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 | 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 }}