Hugo-based levitation.wales initial commit

This commit is contained in:
2026-09-04 13:48:04 +01:00
commit 74e7c4b3ed
55 changed files with 982 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{{/*
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 -}}