Skip to content

allow user to set <title> independently from <h1>

Brown, Jonathan D. requested to merge github/fork/shaefner-usgs/title into master

Created by: shaefner-usgs

Sometimes it's desirable to set <title> to a different value than <h1>. The specific use case I have is that I want to give multiple "sibling" pages w/ the same <h1> tag (but different subtitles) a unique <title> tag to assist the user navigating their history within an app.

It works as expected if you just include a $TITLE var (both <title> and <h1> are set to $TITLE), but if you also include a $TITLETAG var, this value will override $TITLE for <title>.

Merge request reports