diff --git a/assets/scss/_base.scss b/assets/scss/_base.scss index ad462067c6..4b9125bcd9 100644 --- a/assets/scss/_base.scss +++ b/assets/scss/_base.scss @@ -832,3 +832,16 @@ section#cncf { font-size: 1rem; } } + +/* DOCUMENTATION */ + +body.td-documentation { + header > .header-filler { + height: $hero-padding-top; + background-color: black; + } + /* Special case for if an announcement is active */ + header section#announcement ~ .header-filler { + display: none; + } +} diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index 44469d11d6..563d87272f 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -497,3 +497,18 @@ section#announcement ~ .header-hero { margin: #{$announcement-size-adjustment / 2} 0; } } + +/* DOCUMENTATION */ + +/* Don't show lead text */ +body.td-documentation { + main { + @media only screen { + > * { + > .lead:first-of-type { + display: none; + } + } + } + } +} diff --git a/content/en/docs/_index.md b/content/en/docs/_index.md index 05e96e2901..e06ebf76a5 100644 --- a/content/en/docs/_index.md +++ b/content/en/docs/_index.md @@ -1,3 +1,4 @@ --- +linktitle: Kubernetes Documentation title: Documentation --- diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 2c25cf1109..04ca30871b 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -8,14 +8,7 @@
{{ partial "navbar.html" . }} {{ partial "announcement.html" . }} -
-

- {{ $sectionHeading := .Site.GetPage "section" .Section }} - {{ with $sectionHeading }} - {{ .Title }} - {{ end }} -

-
+
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 28fbc9e98f..e9ac8b7f66 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -7,7 +7,7 @@