mirror of https://github.com/kubeflow/website.git
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:
parent
54f529fed3
commit
d07bd82dc6
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue