File tree Expand file tree Collapse file tree 7 files changed +34
-12
lines changed Expand file tree Collapse file tree 7 files changed +34
-12
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 @@ -497,3 +497,18 @@ section#announcement ~ .header-hero {
497
497
margin : #{$announcement-size-adjustment / 2 } 0 ;
498
498
}
499
499
}
500
+
501
+ /* DOCUMENTATION */
502
+
503
+ /* Don't show lead text */
504
+ body .td-documentation {
505
+ main {
506
+ @media only screen {
507
+ > * {
508
+ > .lead :first-of-type {
509
+ display : none ;
510
+ }
511
+ }
512
+ }
513
+ }
514
+ }
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 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 }}
Original file line number Diff line number Diff line change 26
26
{{ $show := or (eq $s $p.FirstSection) (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s)) }}
27
27
{{ $sid := $s.RelPermalink | anchorize }}
28
28
< ul class ="td-sidebar-nav__section pr-md-3 ">
29
+ {{ if (ne $s.File.Path "docs/_index.md") }}
29
30
< li class ="td-sidebar-nav__section-title ">
30
31
< a href ="{{ $s.RelPermalink }} " class ="align-left pl-0 pr-2{{ if not $show }} collapsed{{ end }}{{ if $active}} active{{ end }} td-sidebar-link td-sidebar-link__section ">
31
- {{ if not (eq $s.LinkTitle "Documentation") }}
32
32
{{ $s.LinkTitle }}
33
- {{ end }}
34
33
</ a >
35
34
</ li >
35
+ {{ end }}
36
36
< ul >
37
37
< li class ="collapse {{ if $show }}show{{ end }} " id ="{{ $sid }} ">
38
38
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }}
You can’t perform that action at this time.
0 commit comments