diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/docs/title.html | 3 |
1 files changed, 1 insertions, 2 deletions
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 }} |