Can default taxonomy destinations be disabled?

In your site configuration, this will allow you to access term metadata, but Hugo will not render the authors taxonomy or term pages:

[[cascade]]
[cascade.build]
render = 'never'
[cascade._target]
path = '{/authors,/authors/**}'

After doing the above you can still access term metadata with something like this:

{{ with site.Taxonomies.authors.Get "author-a" }}
  Name: {{ .Page.Title }}<br>
  Email: {{ .Page.Params.email }}<br>
{{ end }}

Or this:

{{ with site.GetPage (printf "/authors/author-a") }}
  Name: {{ .Title }}<br>
  Email: {{ .Params.email }}<br>
{{ end }}
3 Likes