Skip to content

Commit a61da65

Browse files
committed
Soften language about older articles
1 parent b6f0d8f commit a61da65

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

assets/scss/_custom.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ body {
401401
}
402402

403403
.deprecation-warning, .pageinfo.deprecation-warning {
404-
padding: 20px;
405-
margin: 20px 0;
404+
padding: clamp(10px, 2vmin, 20px);
405+
margin: clamp(10px, 1vh, 20px) 0;
406406
background-color: #faf5b6;
407407
color: #000;
408408
}
@@ -416,6 +416,9 @@ body.td-home .deprecation-warning, body.td-blog .deprecation-warning, body.td-do
416416
border-radius: 3px;
417417
}
418418

419+
.deprecation-warning p:only-child {
420+
margin-bottom: 0;
421+
}
419422

420423
.td-documentation .td-content > .highlight {
421424
max-width: initial;

data/i18n/en/en.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,7 @@ other = "Objectives"
206206
other = "Options"
207207

208208
[outdated_blog__message]
209-
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."
210-
211-
[outdated_blog__title]
212-
other = "Outdated article"
209+
other = "This article is more than one year old. Older articles may contain outdated content. Check that the information in the page has not become incorrect since its publication."
213210

214211
[post_create_issue]
215212
other = "Create an issue"

layouts/partials/deprecation-warning.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ <h3>
1212
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
1313
<section id="deprecation-warning">
1414
<div class="content deprecation-warning pageinfo outdated-blog">
15-
<h3>{{ T "outdated_blog__title" }}</h3>
1615
<p>{{ T "outdated_blog__message" }}</p>
1716
</div>
1817
</section>

0 commit comments

Comments
 (0)