I have a Hugo site with a few hundred posts and each post is associated with an author custom taxonomy. The authors have their own list and single page, but when they leave the company their author page is marked as expired to remove them from these list and single pages.
I was wondering if it’s possible to have an Author marked as expired still attached to a post at render, without having their own single and list page?
Basically, I want to utilise the author ‘migrationagents’ taxonomy in the ‘migration-news’ layout in a similar manner to ‘case-studies/single.html’ layout (example below). However I want it to include ‘migrationagents’ that are expired.
This is a similar issue (how to get some front matter data from a draft page when building a site).
basically: you could read the directory that your authors are in and use transform.Unmarshal on .Content to create a map to extract parameters from.
now after taking a second look at your text, you are linking to the author page… so you still want that page to render… so i think that you are using expired wrongly. but it seems like you can use --buildExpired on build (see: Basic Usage | Hugo)