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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -421,3 +421,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
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -4,18 +4,11 @@
|
|||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body class="td-{{ .Kind }}">
|
<body class="td-{{ .Kind }} td-documentation">
|
||||||
<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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user