From 1a88ffdf99dc5c01eab567ae7907945d559ea3ba Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 2 Feb 2022 09:04:05 -0500 Subject: [PATCH] Final cleanup and choice of i18n-key and class names --- data/i18n/en/en.toml | 4 ++-- layouts/partials/deprecation-warning.html | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index adb9e00f0b..ccd6dd35b3 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -202,10 +202,10 @@ other = "Objectives" [options_heading] other = "Options" -[outdated_blog_over_one_year_old] +[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] +[outdated_blog__title] other = "Outdated article" [post_create_issue] diff --git a/layouts/partials/deprecation-warning.html b/layouts/partials/deprecation-warning.html index bb34c79bd4..1e72e45cca 100644 --- a/layouts/partials/deprecation-warning.html +++ b/layouts/partials/deprecation-warning.html @@ -10,12 +10,10 @@ {{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}} -{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}} -{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}} -
+
-

{{ $title }}

-

{{ $msg }}

+

{{ T "outdated_blog__title" }}

+

{{ T "outdated_blog__message" }}

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