mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
add alert to docs
This commit is contained in:
@@ -14,9 +14,23 @@
|
||||
<div class="col-4"></div>
|
||||
</div>
|
||||
|
||||
<div class="head-blank"></div>
|
||||
<div class="head-blank">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row max-sized contents-container background-base-gray-side">
|
||||
|
||||
{{ $url := urls.Parse .Permalink }}
|
||||
{{ $path := split $url.Path "/" }}
|
||||
{{ $product := index $path 1 }}
|
||||
{{ $version := index $path 2 }}
|
||||
{{ $productVersion := printf "%s/%s" $product $version}}
|
||||
{{ if eq $productVersion "rancher/v2.x" }}
|
||||
<div class="alert alert-notice">
|
||||
<strong>We are transitioning to versioned documentation.</strong> The v2.x docs will no longer be maintained. For Rancher v2.5 docs, go <a href="https://rancher.com/docs/rancher/v2.5/en/">here.</a> For Rancher v2.0-v2.4 docs, go <a href="https://rancher.com/docs/rancher/v2.0-v2.4/en/">here.</a>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="
|
||||
col-xl-3
|
||||
col-lg-4
|
||||
|
||||
Reference in New Issue
Block a user