Taxonomy filter not working

Hi guys,

I have been trying to make use of taxonomy and it is not working on my site.

I have carefully followed the steps described at Taxonomy | Grav Documentation - since I am experimenting, I opted for the most straightforward way and used taxonomy tag in my frontmatter.

Then I created a new page (default.cz.md) and copied in

Kevin Smith's Posts

    {% for post in taxonomy.findTaxonomy({'author':'ksmith'}) %}
  • {{ post.title }}
  • {% endfor %}

from the Grav manual, only modifying the title and replacing author with tag and ksmith with spravce. However, instead of a list of topics (i. e. the two pages that have tag: [spravce] in their frontmatter), I am getting this:

bonbon

Why is this happening? Is there an option in system.yaml or site.yaml (somewhere else?) that I forgot to switch on? I am using a theme based on Learn2.

Thanks for pointing me in the right direction.

Sue

Hello,

You’re using twig in your markdown file.
By default, twig in markdown is not processed.

You should enable it: Process twig

Hello,
thanks for your insight, it did help. :fireworks: I enjoy taxonomies way more now and are on my way to build more of them. Thanks again, I very much appreciate your help.

Sue

1 Like