Merge pull request #22043 from sftim/20200624_update_documentation_section_page_headers
Remove hero header from documentation section
This commit is contained in:
@@ -832,3 +832,16 @@ section#cncf {
|
|||||||
font-size: 1rem;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -497,3 +497,18 @@ section#announcement ~ .header-hero {
|
|||||||
margin: #{$announcement-size-adjustment / 2} 0;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
linktitle: Kubernetes Documentation
|
||||||
title: Documentation
|
title: Documentation
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -8,14 +8,7 @@
|
|||||||
<header>
|
<header>
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
{{ partial "announcement.html" . }}
|
{{ partial "announcement.html" . }}
|
||||||
<section class="header-hero text-center text-white font-bold pb-4">
|
<div class="header-filler"></div>
|
||||||
<h1>
|
|
||||||
{{ $sectionHeading := .Site.GetPage "section" .Section }}
|
|
||||||
{{ with $sectionHeading }}
|
|
||||||
{{ .Title }}
|
|
||||||
{{ end }}
|
|
||||||
</h1>
|
|
||||||
</section>
|
|
||||||
</header>
|
</header>
|
||||||
<div class="container-fluid td-outer">
|
<div class="container-fluid td-outer">
|
||||||
<div class="td-main">
|
<div class="td-main">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<ul class="global-nav">
|
<ul class="global-nav">
|
||||||
{{ $sections := slice "docs" "blog" "training" "partners" "community" "case-studies" }}
|
{{ $sections := slice "docs" "blog" "training" "partners" "community" "case-studies" }}
|
||||||
{{ range $sections }}
|
{{ range $sections }}
|
||||||
{{ with site.GetPage "section" . }}<li><a href="{{ .RelPermalink }}"{{ if eq .Section $.Section }} class="active"{{ end}} data-proofer-ignore>{{ .LinkTitle }}</a></li>{{ end }}
|
{{ with site.GetPage "section" . }}<li><a href="{{ .RelPermalink }}"{{ if eq .Section $.Section }} class="active"{{ end}} data-proofer-ignore>{{ .Title }}</a></li>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Link directly to documentation etc., if possible. */}}
|
{{/* Link directly to documentation etc., if possible. */}}
|
||||||
{{ $langPage := cond (gt (len .Translations) 0) . site.Home }}
|
{{ $langPage := cond (gt (len .Translations) 0) . site.Home }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
{{ with site.GetPage "section" . }}
|
{{ with site.GetPage "section" . }}
|
||||||
<li class="nav-item mr-2 mb-lg-0">
|
<li class="nav-item mr-2 mb-lg-0">
|
||||||
{{ $active := eq .Section $.Section }}
|
{{ $active := eq .Section $.Section }}
|
||||||
<a class="nav-link{{if $active }} active{{end}}" href="{{ .RelPermalink }}" >{{ .LinkTitle }}</span></a>
|
<a class="nav-link{{if $active }} active{{end}}" href="{{ .RelPermalink }}" >{{ .Title }}</span></a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -26,13 +26,13 @@
|
|||||||
{{ $show := or (eq $s $p.FirstSection) (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s)) }}
|
{{ $show := or (eq $s $p.FirstSection) (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s)) }}
|
||||||
{{ $sid := $s.RelPermalink | anchorize }}
|
{{ $sid := $s.RelPermalink | anchorize }}
|
||||||
<ul class="td-sidebar-nav__section pr-md-3">
|
<ul class="td-sidebar-nav__section pr-md-3">
|
||||||
|
{{ if (ne $s.File.Path "docs/_index.md") }}
|
||||||
<li class="td-sidebar-nav__section-title">
|
<li class="td-sidebar-nav__section-title">
|
||||||
<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">
|
<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">
|
||||||
{{ if not (eq $s.LinkTitle "Documentation") }}
|
|
||||||
{{ $s.LinkTitle }}
|
{{ $s.LinkTitle }}
|
||||||
{{ end }}
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{{ end }}
|
||||||
<ul>
|
<ul>
|
||||||
<li class="collapse {{ if $show }}show{{ end }}" id="{{ $sid }}">
|
<li class="collapse {{ if $show }}show{{ end }}" id="{{ $sid }}">
|
||||||
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }}
|
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }}
|
||||||
|
|||||||
Reference in New Issue
Block a user