diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-18 01:35:54 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-18 01:35:54 +0200 |
commit | 8678e82154226d31ff2833c83fc078d6260a218f (patch) | |
tree | ce36a6825aaea3323980548df9db547a9c7d15f9 /layouts/partials/docs/shared.html | |
parent | 561659ed53a1eb1e7583513af5fa2faba55fca7e (diff) |
Improve side menu rendering
Diffstat (limited to 'layouts/partials/docs/shared.html')
-rw-r--r-- | layouts/partials/docs/shared.html | 4 |
1 files changed, 2 insertions, 2 deletions
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 }} |