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:
@@ -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 }}
|
||||
Reference in New Issue
Block a user