Merge pull request #31594 from chalin/chalin-outdated-blog-feat-2022-02-01

Mark blogs older than a year as outdated
This commit is contained in:
Kubernetes Prow Robot
2022-02-02 09:44:22 -08:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -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"
@@ -9,4 +9,11 @@
</p>
</div>
</section>
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
<section id="deprecation-warning" class="outdated-blog">
<div class="content deprecation-warning pageinfo">
<h3>{{ T "outdated_blog__title" }}</h3>
<p>{{ T "outdated_blog__message" }}</p>
</div>
</section>
{{ end }}