{{/* Project override of Hextra's utils/title. Same behaviour as the theme, plus a small "(alum)" marker in the sidebar, breadcrumb, and pager for pages flagged `alumnus: true`. The marker is derived from that single flag, so status is still stored in one place. */}} {{- $title := "" }} {{ if .LinkTitle }} {{ $title = .LinkTitle }} {{ 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 }} {{- if .Params.alumnus }} {{ $title = printf "%s (alum)" $title }} {{- end }} {{ return $title -}}