Skip to content

Commit 669c19b

Browse files
committed
Promote guides to second level header
Move guides to be front and centre Signed-off-by: Aidan Delaney <[email protected]>
1 parent f060484 commit 669c19b

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

config.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ featureKatacoda = false
8181
url = "https://github.com/buildpacks"
8282
weight = 4
8383

84+
[[menu.docs]]
85+
name = "Application Developer Guide"
86+
url = "/docs/app-developer-guide"
87+
weight = 1
88+
89+
[[menu.docs]]
90+
name = "Buildpack Author Guide"
91+
url = "/docs/buildpack-author-guide"
92+
weight = 2
93+
94+
[[menu.docs]]
95+
name = "Platform Operator Guide"
96+
url = "/docs/operator-guide/"
97+
weight = 3
98+
8499
[security]
85100
enableInlineShortcodes = false
86101
[security.exec]

themes/buildpacks/layouts/partials/header.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@
3030
<a class="github-button icon-button bg-blue button d-none d-lg-flex" href="https://github.com/buildpacks">GitHub</a>
3131
</div>
3232
</nav>
33+
34+
<nav id="subnav" class="navbar navbar-expand-sm" role="navigation">
35+
<ul class="nav navbar-nav">
36+
{{ range $.Site.Menus.docs }}
37+
<li class="nav-link text-center">
38+
<a class="nav-link py-2 py-lg-0 px-1" href="{{.URL}}">{{.Name}}</a>
39+
</li>
40+
{{ end }}
41+
</ul>
42+
</nav>
3343
</header>

themes/buildpacks/layouts/partials/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{{- if ne $numberOfPages 0 }}
5353
{{- $depth = add (int $depth) 1 }}
5454
<ul class="ml-2">
55-
{{- $expand = (or .Params.expand $isCurrent) -}}
55+
{{- $expand = (or $isCurrent) -}}
5656
{{- $pages := (.Pages | union .Sections) }}
5757
{{- range $pages.ByWeight }}
5858
{{- if (not .Params.hidden) }}

0 commit comments

Comments
 (0)