Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taxonomies are empty array #58

Open
fiinix opened this issue Jan 10, 2020 · 3 comments
Open

taxonomies are empty array #58

fiinix opened this issue Jan 10, 2020 · 3 comments
Labels
docs Documentation required
Milestone

Comments

@fiinix
Copy link

fiinix commented Jan 10, 2020

Expectation: In the Twig template, I expect {{page.taxonomies}} to return an array of taxonomy terms.

Result: Taxonomy terms are returned as an empty array

@fiinix fiinix added the bug Something isn't working label Jan 10, 2020
@simonrjones
Copy link
Member

Solution: Add setup to content-model.yaml

taxonomies:
      - pillars

Todo: add documentation for taxonomies

@simonrjones simonrjones added docs Documentation required and removed bug Something isn't working labels Jan 10, 2020
@simonrjones
Copy link
Member

Example output in a template:

{% for taxonomy in page.taxonomies %}
    {% for term in taxonomy %}
        {{ term.name }}
    {% endfor %}
{% endfor %}

@simonrjones
Copy link
Member

Todo: add documentation for taxonomies

@simonrjones simonrjones added this to the 0.8.0 milestone May 6, 2021
@simonrjones simonrjones removed their assignment May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation required
Projects
None yet
Development

No branches or pull requests

2 participants