mirror of https://github.com/dapr/docs.git
Updating archived version banner for v1.1 (disabled)
This commit is contained in:
parent
8497e6fcff
commit
1150e094e2
|
@ -139,6 +139,7 @@ github_branch = "v1.1"
|
||||||
version_menu = "v1.1 (latest)"
|
version_menu = "v1.1 (latest)"
|
||||||
version = "v1.1"
|
version = "v1.1"
|
||||||
archived_version = false
|
archived_version = false
|
||||||
|
url_latest_version = "https://docs.dapr.io"
|
||||||
|
|
||||||
[[params.versions]]
|
[[params.versions]]
|
||||||
version = "v1.1 (latest)"
|
version = "v1.1 (latest)"
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Check the variable that indicates whether this is an archived doc set.
|
||||||
|
If yes, display a banner. -->
|
||||||
|
{{ if .Site.Params.archived_version }}
|
||||||
|
{{ $color := "primary" }}
|
||||||
|
{{ $latest_version := .Site.Params.url_latest_version }}
|
||||||
|
{{ $current_version := .Site.Params.version }}
|
||||||
|
<div class="pageinfo pageinfo-{{ $color }}">
|
||||||
|
{{ with $current_version }}<p>The documentation you are viewing is for Dapr {{ . | markdownify }}
|
||||||
|
which is an older version of Dapr.
|
||||||
|
{{ with $latest_version }}For up-to-date documentation, see the
|
||||||
|
<a href="{{ $latest_version | safeURL }}" target="_blank">latest version</a>.</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
Loading…
Reference in New Issue