v0.5 branch: Added explicit styling for version banner (#1557)

* Added logic to create a banner on archived doc sets (#1535)

* Set the archived parameter to true.

* Added styling directly to banner div, as the CSS is not in early versions of theme.
This commit is contained in:
Sarah Maddox 2020-01-24 16:02:32 +11:00 committed by Kubernetes Prow Robot
parent 54f529fed3
commit d07bd82dc6
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,15 @@
{{ if .Site.Params.archived_version }}
{{ $color := "primary" }}
{{ $latest := .Site.Params.url_latest_version }}
<div class="pageinfo pageinfo-{{ $color }}">
<div style="font-weight: $font-weight-medium;
background: $gray-100;
color: inherit;
border-radius: 0;
margin: 2rem;
padding: 1.5rem;
padding-bottom: 0.5rem;
border-style: solid;
border-color: $color;">
{{ with .Site.Params.version }}<p>Version {{ . | markdownify }} of the
documentation is no longer actively maintained. The site that you are
currently viewing is an archived snapshot. For up-to-date documentation,