Skip to content

Commit

Permalink
Final cleanup and choice of i18n-key and class names
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Feb 2, 2022
1 parent 3e8f9d2 commit 1a88ffd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions data/i18n/en/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 3 additions & 5 deletions layouts/partials/deprecation-warning.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ <h3>
</div>
</section>
{{ 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") -}}
<section id="deprecation-warning" class="blog-outdated-warning">
<section id="deprecation-warning" class="outdated-blog">
<div class="content deprecation-warning pageinfo">
<h3>{{ $title }}</h3>
<p>{{ $msg }}</p>
<h3>{{ T "outdated_blog__title" }}</h3>
<p>{{ T "outdated_blog__message" }}</p>
</div>
</section>
{{ end }}

0 comments on commit 1a88ffd

Please sign in to comment.