
You can now set a page title and a separate title for the table of contents with: ``` --- title: "Manager Configuration: MQTT" titleTOC: MQTT --- ```
14 lines
344 B
HTML
14 lines
344 B
HTML
{{ $title := "" }}
|
|
|
|
{{ if .Page.Params.TitleTOC }}
|
|
{{ $title = .Page.Params.TitleTOC }}
|
|
{{ else 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 }}
|