Construction in baseof.html
<title>{{ .Title }} > My Site</title>
works for single pages. But when it comes to taxonomies list pages .Title
is empty. I need taxonomies pages to have taxonomy metadata as <title>
. Let’s take example
config.toml
[taxonomies]
author = "authors"
_index.md in content/authors/jack-london
---
fullname: "Jack London"
---
Front matter of books by Jack London (yes, for some reasons I have to use already urlized names as tags)
authors:
- jack-london
First I need “Jack London” as <title>
of /authors/jack-london
page
{{ .Page.Params.fullname }}
do the trick
Second I’d like code for <title>
to be reusable for all pages. Logic something like
if page is single
{{ .Title }} else if page taxonomy {{ .Page.Params.fullname }}Is it possible?