diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 53467e42de..ccd6dd35b3 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -202,6 +202,12 @@ other = "Objectives" [options_heading] other = "Options" +[outdated_blog__message] +other = "The Kubernetes project considers this article to be outdated because it is more than one year old. Check that the information in the page has not become incorrect since its publication." + +[outdated_blog__title] +other = "Outdated article" + [post_create_issue] other = "Create an issue" diff --git a/layouts/partials/deprecation-warning.html b/layouts/partials/deprecation-warning.html index 14261d73dd..1e72e45cca 100644 --- a/layouts/partials/deprecation-warning.html +++ b/layouts/partials/deprecation-warning.html @@ -9,4 +9,11 @@

+{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}} +
+
+

{{ T "outdated_blog__title" }}

+

{{ T "outdated_blog__message" }}

+
+
{{ end }} \ No newline at end of file