From 4162b7110c6775b28c7d1b3a8a3b0c3651ec540d Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Fri, 28 Jan 2022 16:09:01 +0100 Subject: [PATCH] feat: add section specific navigation bar --- layouts/docs/list.html | 2 +- layouts/partials/header/header.html | 19 +++++++++++++++++++ layouts/partials/main/breadcrumb.html | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/layouts/docs/list.html b/layouts/docs/list.html index c860531..4775e0c 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -2,7 +2,7 @@
-

{{ .Title }}

+

{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}

{{ .Content }}
{{ $currentSection := .CurrentSection }} diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index ae39a67..b33a380 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -129,6 +129,25 @@
+
+ +
+ +{{ else -}} + +