Skip to content

Commit

Permalink
Merge pull request #3 from Kamik423/master
Browse files Browse the repository at this point in the history
Improved Automatic Title Generation to Exclude Index
  • Loading branch information
edelabar authored Feb 17, 2023
2 parents 7032607 + aae2abe commit 8223dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Publish/API/PlotComponents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8223dd6

Please sign in to comment.