Skip to content

Commit 8223dd6

Browse files
authored
Merge pull request #3 from Kamik423/master
Improved Automatic Title Generation to Exclude Index
2 parents 7032607 + aae2abe commit 8223dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Publish/API/PlotComponents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public extension Node where Context == HTML.DocumentContext {
3434
) -> Node {
3535
var title = location.title
3636

37-
if title.isEmpty {
37+
if title.isEmpty || title.lowercased() == "index" {
3838
title = site.name
3939
} else {
4040
title.append(titleSeparator + site.name)

0 commit comments

Comments
 (0)