Skip to content

Commit

Permalink
Link to same page from old releases' documentation (#44173)
Browse files Browse the repository at this point in the history
* added latest page link

Signed-off-by: coder12git <[email protected]>

* add line

Signed-off-by: GitHub <[email protected]>

* changes

Signed-off-by: coder12git <[email protected]>

---------

Signed-off-by: coder12git <[email protected]>
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
coder12git authored Dec 3, 2023
1 parent 7c1c1b3 commit 2d285b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data/i18n/en/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ other = "You are viewing documentation for Kubernetes version:"
[deprecation_warning]
other = " documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date information, see the "

[deprecation_warning_page_link]
other = "For the most up-to-date information of this page, check out the "

[deprecation_file_warning]
other = "Deprecated"

Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/deprecation-warning.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ <h3>
{{ T "deprecation_title" }} {{ .Param "version" }}
</h3>
<p> Kubernetes {{ .Param "version" }} {{ T "deprecation_warning" }}
<a href="{{ site.Params.currentUrl }}">{{ T "latest_version" }}</a>
<a href="{{ site.Params.currentUrl }}">{{ T "latest_version" }}</a>
</p>
<p> {{ T "deprecation_warning_page_link" }}
<a href="{{ .Permalink }}">{{ T "latest_version" }}</a>
</p>
</div>
</section>
Expand Down

0 comments on commit 2d285b7

Please sign in to comment.