Skip to content

Commit

Permalink
DOC-3499 Sitewide archived content banner
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelledge committed Mar 29, 2024
1 parent 6dc41d1 commit a0590ca
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/flex/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
{{ end }}
{{ 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
42 changes: 40 additions & 2 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: fixed;
margin-bottom: -58px;
position: relative;
right: 0;
top: 0;
z-index: 999;
Expand Down Expand Up @@ -1100,6 +1100,44 @@ article {
/* flex: 1; */
margin-top: 57px;
}

.banner {
background-color: #27264d;
padding: 1px;
z-index: 999;
}

.banner p {
text-align: center;
font-size: 16px !important;
color: #ffff;
}

.banner a {
color: #ffff;
text-decoration: underline;
}

.banner-article {
/*background-color: #f7f7f7;*/
background-color: #fff8dc;
padding: 1px;
margin-left: -3px;
z-index: 998;
}

.banner-article p {
text-align: left;
font-size: 16px !important;
padding-top: 1rem;
padding-left: 3px;
padding-right: 3px;
}

.banner-article a {
text-decoration: underline;
}

.cbp-spmenu a.menu__link__title {
opacity: 0.4;
font-size: 16px;
Expand Down

0 comments on commit a0590ca

Please sign in to comment.