From aae2abee063c3dba767a26b007f0f4e81553af78 Mon Sep 17 00:00:00 2001 From: Hans Date: Sat, 24 Sep 2022 22:06:28 +0200 Subject: [PATCH] Improved automatic title generation to exclude index --- Sources/Publish/API/PlotComponents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Publish/API/PlotComponents.swift b/Sources/Publish/API/PlotComponents.swift index 5e0c0b09..d4a41f68 100644 --- a/Sources/Publish/API/PlotComponents.swift +++ b/Sources/Publish/API/PlotComponents.swift @@ -34,7 +34,7 @@ public extension Node where Context == HTML.DocumentContext { ) -> Node { var title = location.title - if title.isEmpty { + if title.isEmpty || title.lowercased() == "index" { title = site.name } else { title.append(titleSeparator + site.name)