What is the difference between having the author taxonomy defined in site.yaml and page.header.author? If I use the author taxonomy from site.yaml, I can filter blog pages by author, however, if I use the taxonomy in the page header, that filter doesn’t work.
The following code
{% if page.taxonomy.author %}
{% for author in page.taxonomy.author %}
<a href="{{ base_url }}/author{{ config.system.param_sep }}{{ author }}">{{ author }}
{% end for %}
{% endif %}
Filter correctly by taxonomy if site.yaml is like this:
taxonomies:
- category
- tag
- author
DO NOT filter by taxonomy if item.md is like this:
taxonomy:
category:
-category1
tag:
-tag1
author:
- Peter
I have defined the taxonomy according to this post:
Now, if we visit the blog, filtering the author “Ana”, we get only one post, the post that has the author defined in the taxonomy (Grav Install) and NOT in the page header (Post Five)
OK, now I understand your issue. As far as I know …/author:Ana only works when the author is defined as taxonomy, but not when it’s simply in the header.