Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Request: Unique page <title> support #118

Open
Blackbaud-MattGregg opened this issue Dec 27, 2016 · 2 comments
Open

Request: Unique page <title> support #118

Blackbaud-MattGregg opened this issue Dec 27, 2016 · 2 comments

Comments

@Blackbaud-MattGregg
Copy link

Enable yaml page name propery or some other property to map to the the HTML page's <title> element value. This will show up in search engine results, bookmarks, tab/window headings. Having pages with unique titles is also needed for good accessibility (https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-title.html).

@Blackbaud-BobbyEarl
Copy link

The HTML <title> is currently generated at https://github.com/blackbaud/stache/blob/master/src/layouts/layout-base.hbs#L8.

It uses the global title variable from stache.yml file. If the local page has a title variable set in the YAML Front Matter, that is appended (separated with |).

Is this what you're looking to do @Blackbaud-MattGregg?

@Blackbaud-MattGregg
Copy link
Author

Totally. I missed it :(
Would love option to flip so the meaningful/unique title is first and can be seen in tabs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants