Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-04-07: sitewide archived content banner #3237

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading