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 1cfed3f0cb..1ca6f3c6b4 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -421,3 +421,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 2b5aea8268..5f35c84541 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -4,18 +4,11 @@ {{ partial "head.html" . }}