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

ENH: html: append the top title to the document title #13

Open
westurner opened this issue Mar 30, 2020 · 0 comments
Open

ENH: html: append the top title to the document title #13

westurner opened this issue Mar 30, 2020 · 0 comments

Comments

@westurner
Copy link

It would be helpful for SEO and for usability to include the "top title" in the page titles:

  • "top title": "Think Stats"
  • document title: "Distributions"
  • current <title>: "Distributions"
  • suggested <title>: "Distributions [sep] Think Stats"
  • sep: &mdash;, &ndash;, ·

Unfortunately, I don't know how to do this w/ LaTeX.
e.g. Think Stats defines \thetitle, \thesubtitle, and \theversion commands that return strings, but IDK what a good convention would be. https://github.com/AllenDowney/ThinkStats2/blob/c76e1ecdd56a47bbb7ed13ed2fafe1eb1274f3d9/book/book.tex#L45-L47

Maybe a redefineable command?

hevea/html/hevea.hva

Lines 300 to 305 in ee94951

\@print{<title>}%
\ifu\@title\jobname\else
\@notags{\begin{@norefs}\let\@print@u\@print@u@default\@getprint{\@title}\end{@norefs}}
\fi
\@print{</title>
}%

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

1 participant