Revise page header styles
- more compact headers when announcements are showing - when no announcement showing, top level docs sections (eg Concepts, Tasks, Reference) have a heading in the top nav - when announcement is showing, rely on the breadcrumb trail plus page introduction text for each top level section - switch from plain black docs header to match other sections
This commit is contained in:
@@ -6,26 +6,21 @@
|
||||
<body class="td-{{ .Kind }}{{- if ne .Params.cid "" -}}{{- printf " cid-%s" (lower .Params.cid) -}}{{- end -}}">
|
||||
<header>
|
||||
{{ partial "navbar.html" . }}
|
||||
</header>
|
||||
{{ block "announcement" . }}
|
||||
{{ if .IsHome }}
|
||||
{{ partial "frontpage-announcement.html" . }}
|
||||
{{ else }}
|
||||
{{ block "announcement" . }}
|
||||
{{ partial "announcement.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ block "hero" . }}
|
||||
<!-- HERO -->
|
||||
<section class="header-hero text-white pb-4 light-text">
|
||||
<div class="main-section">
|
||||
<div id="headlineWrapper">
|
||||
<h1>{{ block "hero-title" . }}{{ .Params.bigheader | default .Title }}{{ end }}</h1>
|
||||
<h5>{{ .Params.abstract }}</h5>
|
||||
</div>
|
||||
{{ block "hero-more" . }}{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ block "post-hero" . }}
|
||||
</header>
|
||||
{{ block "deprecated" . }}
|
||||
{{ if or .IsHome ( eq .Params.cid "partners" ) ( eq .Params.cid "community" ) }}
|
||||
{{ partial "deprecation-warning.html" . }}
|
||||
@@ -37,8 +32,8 @@
|
||||
<main role="main" class="td-main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partialCached "footer.html" . }}
|
||||
{{ partialCached "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,15 +6,15 @@
|
||||
<body class="td-search {{- if ne .Params.cid "" -}}{{- printf " cid-%s" (lower .Params.cid) -}}{{- end -}}">
|
||||
<header>
|
||||
{{ partial "navbar.html" . }}
|
||||
<div class="header-filler"></div>
|
||||
</header>
|
||||
{{ block "announcement" . }}
|
||||
{{ if .IsHome }}
|
||||
{{ partial "frontpage-announcement.html" . }}
|
||||
{{ else }}
|
||||
{{ block "announcement" . }}
|
||||
{{ partial "announcement.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ block "hero" . }}
|
||||
<section class="header-hero filler">
|
||||
</section>
|
||||
{{ block "hero-more" . }}{{ end }}
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="td-outer">
|
||||
<main role="main" class="td-main">
|
||||
<section class="row td-search-result">
|
||||
@@ -48,8 +48,8 @@
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partialCached "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user