doc/themes/hugo-geekdoc/layouts/partials/utils/title.html
Felix Niederwanger 2a9c145b75
Update hugo-geekdoc theme to v0.32.4
Update the used version of hugo-geekdoc to 0.32.4
2022-06-29 10:13:52 +02:00

12 lines
269 B
HTML

{{ $title := "" }}
{{ if .Title }}
{{ $title = .Title }}
{{ else if and .IsSection .File }}
{{ $title = path.Base .File.Dir | humanize | title }}
{{ else if and .IsPage .File }}
{{ $title = .File.BaseFileName | humanize | title }}
{{ end }}
{{ return $title }}