Improve title format for better SEO and readability #1056
+6
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation:
The homepage currently shows
Swift.org - Welcome to Swift.org
as the<title>
, which is redundant and not ideal for SEO. Internal pages use the formatSwift.org - Page Title
, placing the main topic last, which is suboptimal for search engine visibility and user experience.Additionally, using multiple hyphens in titles such as
Swift.org - Install Swift - macOS
can make it harder to visually parse where the subject ends and the site name begins. Replacing the separator with an em dash (—
) improves clarity by visually distinguishing the content title from the site name.Result:
This PR proposes changing the homepage title to
Swift Programming Language
, as it offers a more descriptive label for search engines and link previews. However, this is open to discussion — alternatives likeWelcome to Swift.org
may also be appropriate, depending on how the community prefers to present the project. Personally, I believe the proposed title better highlights the language itself and improves discoverability, but it's not intended as a final decision.Internal page titles now place the page subject first, followed by the site name separated by an em dash, improving structure, clarity, and SEO performance.