diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index de45d440e4cec..14a5529d3a862 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -32,9 +32,6 @@
- {{ block "deprecated" . }} - {{ partial "deprecation-warning.html" . }} - {{ end }} {{ with .CurrentSection.OutputFormats.Get "rss" -}} RSS diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 37d152ef5e391..fb4084dc47e3f 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -12,6 +12,7 @@ {{ $pageGroups := $pag.PageGroups}} {{ if eq $pag.PageNumber 1 }} {{ end }} +{{ partial "deprecation-warning.html" . }}
{{ range $pageGroups }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000000000..84e2b2265aec0 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +{{ partial "deprecation-warning.html" . }} +{{ .Render "content" }} +{{ end }} diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index e75c288805755..d8aabc0b5f889 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -24,9 +24,6 @@
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} - {{ block "deprecated" . }} - {{ partial "deprecation-warning.html" . }} - {{ end }} {{ block "outdated_content" . }} {{ partial "docs/outdated_content.html" . }} {{ end }} diff --git a/layouts/docs/glossary.html b/layouts/docs/glossary.html index 1688201d25b28..8c73fbc9c40e4 100644 --- a/layouts/docs/glossary.html +++ b/layouts/docs/glossary.html @@ -3,6 +3,7 @@ {{ end }} {{ define "main" }} +{{ partial "deprecation-warning.html" . }}

{{ .Title }}

{{- with resources.Get "css/glossary.css" -}} diff --git a/layouts/docs/list.html b/layouts/docs/list.html index cc10537a76685..8c1f34b3884bb 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -6,6 +6,7 @@ {{- end -}} {{- end -}}
+
{{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 6db1b9a0de70e..08b6c0d90fc9f 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,4 +1,5 @@ {{ define "main" }} +{{ partial "deprecation-warning.html" . }}
{{- if .HasShortcode "kat-button" -}}
diff --git a/layouts/partials/deprecation-warning.html b/layouts/partials/deprecation-warning.html index bf5b67e4456f7..c730313d01fdf 100644 --- a/layouts/partials/deprecation-warning.html +++ b/layouts/partials/deprecation-warning.html @@ -1,6 +1,6 @@ {{ if (.Site.Param "deprecated") }}
-
+

{{ T "deprecation_title" }} {{ .Param "version" }}

@@ -11,7 +11,7 @@

{{ else if and (eq .Section "blog") (not .Params.evergreen) .Date (.Date.Before (now.AddDate -1 0 0)) -}}
-
+

{{ T "outdated_blog__message" }}