diff --git a/layouts/partials/docs/title.html b/layouts/partials/docs/title.html index ffe858a..a37ac7a 100644 --- a/layouts/partials/docs/title.html +++ b/layouts/partials/docs/title.html @@ -7,8 +7,7 @@ {{ if .Title }} {{ $title = .Title }} {{ else if and .IsSection .File }} - {{ $sections := split (trim .File.Dir "/") "/" }} - {{ $title = index ($sections | last 1) 0 | humanize | title }} + {{ $title = path.Base .File.Dir | humanize | title }} {{ else if and .IsPage .File }} {{ $title = .File.BaseFileName | humanize | title }} {{ end }}