I’m using the two default taxonomies : tag & category
I want specific titles for pages from \layouts\taxonomy\tag.html & \layouts\taxonomy\category.html
For tags, I want : “Tag [tag]” and for categories, I want : “Category [category]”
For now I’m using this in my header.html :
{{ if eq .Kind "taxonomy" }}
<title>Taxonomy {{ .Title }}</title>
{{ else }}
<title>{{ .Title }}</title>
{{ end }}
So actually titles for tags are “Taxonomy [tag]” and titles for categories are “Taxonomy [category]”.
But I want “Tag [tag]” & “Category [category]”.
I don’t think that is what the OP is asking for. I know they use confusing examples, but I think they are trying to get the “Taxonomy” in their code snippet to say either Tag or Category, depending on the name of the taxonomy, not the term title.
So when they say:
So actually titles for tags are “Taxonomy [tag]” and titles for categories are “Taxonomy [category]”.
But I want “Tag [tag]” & “Category [category]”.
I believe they mean:
So actually titles for tags are “Taxonomy [Earth]” and titles for categories are “Taxonomy [Planet]”.
But I want “Tag [Earth]” & “Category [Planet]”.