Skip to content

Commit 1a88ffd

Browse files
committed
Final cleanup and choice of i18n-key and class names
1 parent 3e8f9d2 commit 1a88ffd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

data/i18n/en/en.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ other = "Objectives"
202202
[options_heading]
203203
other = "Options"
204204

205-
[outdated_blog_over_one_year_old]
205+
[outdated_blog__message]
206206
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."
207207

208-
[outdated_blog_title]
208+
[outdated_blog__title]
209209
other = "Outdated article"
210210

211211
[post_create_issue]

layouts/partials/deprecation-warning.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ <h3>
1010
</div>
1111
</section>
1212
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
13-
{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}}
14-
{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}}
15-
<section id="deprecation-warning" class="blog-outdated-warning">
13+
<section id="deprecation-warning" class="outdated-blog">
1614
<div class="content deprecation-warning pageinfo">
17-
<h3>{{ $title }}</h3>
18-
<p>{{ $msg }}</p>
15+
<h3>{{ T "outdated_blog__title" }}</h3>
16+
<p>{{ T "outdated_blog__message" }}</p>
1917
</div>
2018
</section>
2119
{{ end }}

0 commit comments

Comments
 (0)