File tree Expand file tree Collapse file tree 6 files changed +33
-11
lines changed Expand file tree Collapse file tree 6 files changed +33
-11
lines changed Original file line number Diff line number Diff line change @@ -832,3 +832,16 @@ section#cncf {
832
832
font-size : 1rem ;
833
833
}
834
834
}
835
+
836
+ /* DOCUMENTATION */
837
+
838
+ body .td-documentation {
839
+ header > .header-filler {
840
+ height : $hero-padding-top ;
841
+ background-color : black ;
842
+ }
843
+ /* Special case for if an announcement is active */
844
+ header section #announcement ~ .header-filler {
845
+ display : none ;
846
+ }
847
+ }
Original file line number Diff line number Diff line change @@ -421,3 +421,18 @@ section#announcement ~ .header-hero {
421
421
margin : #{$announcement-size-adjustment / 2 } 0 ;
422
422
}
423
423
}
424
+
425
+ /* DOCUMENTATION */
426
+
427
+ /* Don't show lead text */
428
+ body .td-documentation {
429
+ main {
430
+ @media only screen {
431
+ > * {
432
+ > .lead :first-of-type {
433
+ display : none ;
434
+ }
435
+ }
436
+ }
437
+ }
438
+ }
Original file line number Diff line number Diff line change 1
1
---
2
+ linktitle : Kubernetes Documentation
2
3
title : Documentation
3
4
---
Original file line number Diff line number Diff line change 4
4
{{ partial "head.html" . }}
5
5
< title > {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</ title >
6
6
</ head >
7
- < body class ="td-{{ .Kind }} ">
7
+ < body class ="td-{{ .Kind }} td-documentation ">
8
8
< header >
9
9
{{ partial "navbar.html" . }}
10
10
{{ partial "announcement.html" . }}
11
- < section class ="header-hero text-center text-white font-bold pb-4 ">
12
- < h1 >
13
- {{ $sectionHeading := .Site.GetPage "section" .Section }}
14
- {{ with $sectionHeading }}
15
- {{ .Title }}
16
- {{ end }}
17
- </ h1 >
18
- </ section >
11
+ < div class ="header-filler "> </ div >
19
12
</ header >
20
13
< div class ="container-fluid td-outer ">
21
14
< div class ="td-main ">
Original file line number Diff line number Diff line change 7
7
< ul class ="global-nav ">
8
8
{{ $sections := slice "docs" "blog" "training" "partners" "community" "case-studies" }}
9
9
{{ range $sections }}
10
- {{ with site.GetPage "section" . }}< li > < a href ="{{ .RelPermalink }} "{{ if eq .Section $.Section }} class ="active "{{ end}} data-proofer-ignore > {{ .LinkTitle }}</ a > </ li > {{ end }}
10
+ {{ with site.GetPage "section" . }}< li > < a href ="{{ .RelPermalink }} "{{ if eq .Section $.Section }} class ="active "{{ end}} data-proofer-ignore > {{ .Title }}</ a > </ li > {{ end }}
11
11
{{ end }}
12
12
{{/* Link directly to documentation etc., if possible. */}}
13
13
{{ $langPage := cond (gt (len .Translations) 0) . site.Home }}
Original file line number Diff line number Diff line change 10
10
{{ with site.GetPage "section" . }}
11
11
< li class ="nav-item mr-2 mb-lg-0 ">
12
12
{{ $active := eq .Section $.Section }}
13
- < a class ="nav-link{{if $active }} active{{end}} " href ="{{ .RelPermalink }} " > {{ .LinkTitle }}</ span > </ a >
13
+ < a class ="nav-link{{if $active }} active{{end}} " href ="{{ .RelPermalink }} " > {{ .Title }}</ span > </ a >
14
14
</ li >
15
15
{{ end }}
16
16
{{ end }}
You can’t perform that action at this time.
0 commit comments