File tree Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ {{ define "main" }}
2
+ {{ partial "deprecation-warning.html" . }}
3
+ {{ .Render "content" }}
4
+ {{ end }}
Original file line number Diff line number Diff line change 24
24
<!--main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main"-->
25
25
< main role ="main " class ="col-xl-8 " {{ if ne .Params.cid "docsHome" }}data-pagefind-body{{ end }}{{ if (and .IsPage .Params.description ) }} data-pagefind-meta="description:{{ .Params.description }} "{{ end }} >
26
26
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
27
- {{ block "deprecated" . }}
28
- {{ partial "deprecation-warning.html" . }}
29
- {{ end }}
30
27
{{ block "outdated_content" . }}
31
28
{{ partial "docs/outdated_content.html" . }}
32
29
{{ end }}
Original file line number Diff line number Diff line change 3
3
{{ end }}
4
4
5
5
{{ define "main" }}
6
+ {{ partial "deprecation-warning.html" . }}
6
7
< h1 > {{ .Title }}</ h1 >
7
8
{{- with resources.Get "css/glossary.css" -}}
8
9
< link href ="{{ .RelPermalink }} " rel ="stylesheet ">
Original file line number Diff line number Diff line change 6
6
{{- end -}}
7
7
{{- end -}}
8
8
< div class ="td-content ">
9
+ {{- partial "deprecation-warning.html" . -}}
9
10
{{ $hasContent := false }}
10
11
{{ with .File }}
11
12
{{ if ne .Filename "" }}
Original file line number Diff line number Diff line change 2
2
{{ if not .Site.Params.deprecated }}
3
3
{{ .Content }}
4
4
{{ else }}
5
+ {{ partial "deprecation-warning.html" . }}
5
6
< div class ="section-index ">
6
7
{{ range where .Site.Pages "Section" "releases" }}
7
8
{{ if not .IsNode }}
@@ -10,6 +11,6 @@ <h5><a href="{{ .RelPermalink }}">{{ .Title }}</a></h5>
10
11
</ div >
11
12
{{ end }}
12
13
{{ end }}
13
- </ div >
14
+ </ div >
14
15
{{ end }}
15
16
{{ end }}
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
+ {{ partial "deprecation-warning.html" . }}
2
3
< div class ="td-content ">
3
4
{{ partial "docs/content-page" (dict "ctx" . "page" .) }}
4
5
<!-- Partial "docs/api-reference-links" determines API reference links for 'partial/page-meta-links.html' -->
Original file line number Diff line number Diff line change 1
1
{{ if (.Site.Param "deprecated") }}
2
2
< section id ="deprecation-warning ">
3
- < div class ="content deprecation-warning pageinfo ">
3
+ < div class ="deprecation-warning {{ if $.IsHome }}home- pageinfo{{else}}pageinfo{{ end }} ">
4
4
< h3 >
5
5
{{ T "deprecation_title" }} {{ .Param "version" }}
6
6
</ h3 >
11
11
</ section >
12
12
{{ else if and (eq .Section "blog") (not .Params.evergreen) .Date (.Date.Before (now.AddDate -1 0 0)) -}}
13
13
< section id ="deprecation-warning ">
14
- < div class ="content deprecation-warning pageinfo outdated-blog ">
14
+ < div class ="deprecation-warning pageinfo outdated-blog ">
15
15
< p > {{ T "outdated_blog__message" }}</ p >
16
16
</ div >
17
17
</ section >
You can’t perform that action at this time.
0 commit comments