You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just looking at open tabs our history, it's hard to figure out what a particular page from the documentation was about - they all have the same page title Documentation.
<title>{{ if .Title }}{{ .Title }}{{ else }}Documentation{{ end }}</title>
where we do end up using .Title set to Cartographer for the landing page, but because of the lack of a .Title in the other contexts, it ends up always being the same "Documentation" title.
desired
I think it'd be great if for each page we had the title set to the root header (ala the h1 of that page's content), or something similar.
proposed solution
make use of Hugo's frontmatter for passing properties to the context? not really sure (I've used it a while ago, not sure what the best practices are)
The text was updated successfully, but these errors were encountered:
cirocosta
changed the title
theme: head's title doesn't change in documentation
theme/content: head's title doesn't change in documentation
Apr 5, 2022
problem
just looking at open tabs our history, it's hard to figure out what a particular page from the documentation was about - they all have the same page title
Documentation
.IIUC, that's coming from the partial here
cartographer-site/themes/template/layouts/_default/baseof.html
Line 7 in 278700b
where we do end up using
.Title
set to Cartographer for the landing page, but because of the lack of a.Title
in the other contexts, it ends up always being the same "Documentation" title.desired
I think it'd be great if for each page we had the title set to the root header (ala the
h1
of that page's content), or something similar.proposed solution
make use of Hugo's frontmatter for passing properties to the context? not really sure (I've used it a while ago, not sure what the best practices are)
The text was updated successfully, but these errors were encountered: