Sync branch magefile with main #104308
@ -71,11 +71,11 @@
|
||||
{{- printf " is-active" }}
|
||||
{{- end }}"
|
||||
>
|
||||
{{ partial "utils/title" . }}
|
||||
{{ partial "utils/title-toc" . }}
|
||||
</a>
|
||||
</span>
|
||||
{{ else }}
|
||||
<span class="flex">{{ partial "utils/title" . }}</span>
|
||||
<span class="flex">{{ partial "utils/title-toc" . }}</span>
|
||||
{{ end }}
|
||||
{{ if $doCollapse }}
|
||||
<svg class="gdoc-icon toggle gdoc_keyboard_arrow_left">
|
||||
|
@ -0,0 +1,13 @@
|
||||
{{ $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 }}
|
Loading…
Reference in New Issue
Block a user