From 222d1e17f32da574c9e44ca96bea05172d9b80e7 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 13 Feb 2025 23:32:24 -0800 Subject: [PATCH] Skip empty titles --- layouts/partials/paige/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/paige/head.html b/layouts/partials/paige/head.html index 66225683..10538d50 100644 --- a/layouts/partials/paige/head.html +++ b/layouts/partials/paige/head.html @@ -22,7 +22,9 @@ {{ range .Ancestors }} {{ $title := cond .IsHome (site.Title | default .Title) .Title }} - {{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }} + {{ with $title }} + {{ $titles = $titles | append (. | markdownify | plainify | htmlUnescape) }} + {{ end }} {{ end }} {{ end }}