getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.99k stars 964 forks source link

Feature request: authors can be a predefined taxonomy #2648

Open ceyusa opened 1 month ago

ceyusa commented 1 month ago

Bug Report

Environment

Zola version: 0.19.2

Expected Behavior

Since https://github.com/getzola/zola/pull/2092 it's possible to set authors per page, something that historically has been done through taxonomies. This new page frontmatter, if I understand correctly, might lead to duplicated data per page.

I would like to propose a predefined taxonomy, authors if there are pages with this frontmatter metadata defined.

Current Behavior

It's impossible (afaiu) to create a list and single of authors frontmatter metadata.

Step to reproduce

Try to create a list of authors.

Keats commented 1 month ago

authors was added for the feeds. It's problematic to add it as a taxonomy since it might not be the wanted name and it breaks symmetry with the other taxonomies. There could be some duplication yes depending on how it's set up.

ceyusa commented 1 month ago

Thanks @Keats

I understand the rejection of creating a virtual taxonomy, still I wonder if it's possible other API to grab the list of authors and the posts written by an author. Perhaps a couple of templates, such as feed-author.html and feed-authors.html, if present, offer them. I don't know, just throwing ideas.

Anyway, if what I'm saying is nonsense, please close the issue :)