Use site title and fall back to page title

This commit is contained in:
Will Faught
2025-02-13 23:31:59 -08:00
parent 60fb69b02a
commit d11f080e1d

View File

@@ -20,7 +20,7 @@
{{ end }}
{{ range .Ancestors }}
{{ $title := cond (and .IsHome (not .Title)) site.Title .Title }}
{{ $title := cond .IsHome (site.Title | default .Title) .Title }}
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
{{ end }}