Custom taxonomy page?

If I have a custom taxonomy for say Author, and wanted to override the list page for a given author to replace the content (think of an about author page before listing content) what’s the best way of going about this??

config.toml

[taxonomies]
author = 'authors'

content/books/les-miserables.md

+++
title = 'Les Miserables'
date = 2022-10-23T23:44:56-07:00
draft = false
authors = ['Victor Hugo']
+++

layouts/_default/term.html

{{ define "main" }}
  <h1>{{ .Title }}</h1>
  {{ .Content }}
  {{ range .Pages }}
    <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
  {{ end }}
{{ end }}

Then create the section page for the author:

hugo new authors/victor-hugo/_index.md
+++
title = 'Victor Hugo'
date = 2022-10-23T23:46:47-07:00
draft = false
+++
Victor-Marie Hugo was a French Romantic writer and politician. 

See:
https://gohugo.io/content-management/taxonomies#add-custom-metadata-to-a-taxonomy-or-term

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.