Skip to content

Associate page title with project title in title tag #122

@mojavelinux

Description

@mojavelinux

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions