Skip to content

Add subtitle in <title> so user/crawler know the group the page belongs to. #1457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

exoego
Copy link
Contributor

@exoego exoego commented Jul 22, 2019

Currently, HTML <title> in most pages are {PageTitle} | Scala Documentation.
However, there are many pages uses exact same page title.

One example is "Overview". It is used 5 times in different contexts: _overviews/scaladoc/overview.md, _overviews/paralllel-collections/overview.md, _overviews/reflections/overview.md, _overviews/repl/overview.md and _style/overview.md

Another example is 2 version of docs for "Collections", as mentioned in #1456.
Those 2 versions uses same titles.

This PR adds sub title in <title> to make it easy to distinguish pages.
I think this improves UX when they share/bookmark pages.
It is also good for SEO, since search crawlers may get confused if the site uses identical titles many times.

@julienrf julienrf merged commit ae41f10 into scala:master Jul 29, 2019
@exoego exoego deleted the sub-title-in-html-title branch July 29, 2019 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants