Hugo Pagination in single layout

I have come across a use case where I needed to be able to use pagination within a single page layout.

I am creating a blog and needed to display a single authors details and paginate all of that authors posts on their page (which is a single layout as it is for a single author).

A way of doing this - or a potential workaround - would be amazing.

It seems like an authors taxonomy would be perfect for this.

site config

[taxonomies]
author = 'authors'

post front matter

title = 'Foo'
date = 2022-08-30T13:50:53-07:00
draft = false
authors = ['John Doe']

Then paginate the term layout.

1 Like