Skip to content

Commit f227e22

Browse files
authored
Merge pull request #41370 from dipesh-rawat/conditional-layout-release-info
Add Hugo layout to hide release information on outdated k8s.io versions
2 parents f29b3fb + 5c29d1d commit f227e22

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

content/en/releases/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
linktitle: Release History
33
title: Releases
44
type: docs
5+
layout: release-info
56
---
67

78

data/i18n/en/en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ other = "(last updated: %s)"
6565
other = "You are viewing documentation for Kubernetes version:"
6666

6767
[deprecation_warning]
68-
other = " documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the "
68+
other = " documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date information, see the "
6969

7070
[deprecation_file_warning]
7171
other = "Deprecated"

layouts/docs/release-info.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ define "main" }}
2+
{{ if not .Site.Params.deprecated }}
3+
{{ .Content }}
4+
{{ end }}
5+
{{ end }}

0 commit comments

Comments
 (0)