Final cleanup and choice of i18n-key and class names

This commit is contained in:
Patrice Chalin
2022-02-02 09:04:05 -05:00
parent 3e8f9d2f15
commit 1a88ffdf99
2 changed files with 5 additions and 7 deletions
+3 -5
View File
@@ -10,12 +10,10 @@
</div>
</section>
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
{{ $title := .Param "outdated_blog.title" | default (T "outdated_blog_title") -}}
{{ $msg := .Param "outdated_blog.message" | default (T "outdated_blog_over_one_year_old") -}}
<section id="deprecation-warning" class="blog-outdated-warning">
<section id="deprecation-warning" class="outdated-blog">
<div class="content deprecation-warning pageinfo">
<h3>{{ $title }}</h3>
<p>{{ $msg }}</p>
<h3>{{ T "outdated_blog__title" }}</h3>
<p>{{ T "outdated_blog__message" }}</p>
</div>
</section>
{{ end }}