Skip to content

Commit

Permalink
DOC-3499 Sitewide archived content banner (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelledge authored Apr 8, 2024
1 parent c6f6067 commit c3bcafa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/flex/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{{ partial "gtm-body" . | safeHTML }}
{{ end }}
{{ end }}
{{ if .Site.Params.bannerText }}
{{ partial "banner.html" . }}
{{ end }}
<div class="header-wrap-outer">
{{ if .Site.Params.bannerText }}
{{ partial "banner.html" . }}
{{ end }}
<header id="header">
<div class="header-wrap">
<div class="logo">
Expand Down
6 changes: 3 additions & 3 deletions static/theme-flex/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ header {
display: -ms-flexbox;
display: flex;
left: 0;
margin-bottom: 0;
position: absolute;
margin-bottom: -58px;
position: relative;
right: 0;
top: 0;
z-index: 999;
Expand Down Expand Up @@ -1162,7 +1162,7 @@ article {
.banner {
background-color: #27264d;
padding: 1px;
z-index: 998;
z-index: 999;
}

.banner p {
Expand Down

0 comments on commit c3bcafa

Please sign in to comment.