From 8678e82154226d31ff2833c83fc078d6260a218f Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 18 Sep 2018 01:35:54 +0200 Subject: Improve side menu rendering --- layouts/partials/docs/shared.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/partials/docs/shared.html') diff --git a/layouts/partials/docs/shared.html b/layouts/partials/docs/shared.html index f7ba182..91c71b6 100644 --- a/layouts/partials/docs/shared.html +++ b/layouts/partials/docs/shared.html @@ -3,9 +3,9 @@ {{- if .Pages -}} {{ $sections := split (trim .Dir "/") "/" }} {{ $title := index ($sections | last 1) 0 | humanize | title }} - {{- default .Title $title -}} + {{- default $title .Title -}} {{- else -}} {{ $title := .File | humanize | title }} - {{- default .Title $title -}} + {{- default $title .Title -}} {{- end -}} {{ end }} -- cgit v1.2.3