Allow marking some blog posts as evergreen and exempt from outdated warning

This commit is contained in:
Jordan Liggitt
2022-02-26 23:19:32 -05:00
parent b6f0d8ffbc
commit b19e4ff868
10 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
</p>
</div>
</section>
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
{{ else if and (eq .Section "blog") (not .Params.evergreen) .Date (.Date.Before (now.AddDate -1 0 0)) -}}
<section id="deprecation-warning">
<div class="content deprecation-warning pageinfo outdated-blog">
<h3>{{ T "outdated_blog__title" }}</h3>