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

Mark blogs older than a year as outdated
pull/31554/head
Kubernetes Prow Robot 2022-02-02 09:44:22 -08:00 committed by GitHub
commit 5580f5c5d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

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"

View File

@ -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 }}