Skip to content
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

Associate page title with project title in title tag #122

Open
mojavelinux opened this issue Jan 19, 2022 · 0 comments
Open

Associate page title with project title in title tag #122

mojavelinux opened this issue Jan 19, 2022 · 0 comments
Assignees

Comments

@mojavelinux
Copy link
Member

Currently, the title tag only contains the page title (e.g., "PDF Export") followed by the site title ("Asciidoctor Docs"). It does not include the project title. As a result, when the page is indexed, the project to which this page belongs is not evident.

PDF Export | Asciidoctor Docs

The title tag needs to include the project title as well. We need to decide where to insert it, and what delimiter to use to offset it from the other titles. Here are several options:

  • %project% - %page% | %site% (e.g., Asciidoctor reveal.js - PDF Export | Asciidoctor Docs)
  • %page - %project% | %site% (e.g., PDF Export - Asciidoctor reveal.js | Asciidoctor Docs)
  • %page | %project% | %site% (e.g., PDF Export | Asciidoctor reveal.js | Asciidoctor Docs)

The page title should probably go first since that's the most significant information about the page and we don't want it to get cut off. If we agree, then it's just a matter of deciding on the delimiter.

If the project is "Asciidoctor", we could consider dropping the project segment.

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

No branches or pull requests

2 participants