Use the `h1`-based long title for page titles
What goes into <title> tags and such is the same as what we show in the navigation (i.e. if a pages override is present, that gets used). Instead, maybe we should use the h1 heading for that metadata, because it is useful if that would contain a bit more information (the version in pages is usually the short version of the title).
We could formalize this by saying that each page has two titles:
- Long title. Determined from
h1(we could possibly add an at-meta override too), used for<title>and<meta>tags. Ifh1is missing, the short title is used to populate this. We could also provide an at-meta override for this. - Short title. Determined from
pages, or set to long title if not present inpages. Used in the left-side navbar, breadcrumb.
In the PDF/LaTeX output.. I am not sure what we actually use, but since we can't really control the ToC explicitly, I presume we are effectively always using the "long title".
Slightly related to #2154 -- it can solve that issue in cases where the <title> tags repeat because of the "short" titles in pages.
Related: #1371.
Specifically any change here would have to touch https://github.com/JuliaDocs/Documenter.jl/blob/2e6d9dabe32d72da03a9fc0cd184817a955e04c1/src/html/HTMLWriter.jl#L957-L965