Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Taxonomy and Variables

Started by Claud Rusnac 5 years ago · 1 replies · 503 views
5 years ago

I have a variable set (version) in my site.yaml to specify the content version, and I would like to use that variable in my taxonomy, but I am getting an error. Is this possible?

YAML
title: Introduction
taxonomy:
    category: ['docs']
    effective: ['in-effect']
    audience: ['general-users']
    version: {{site.version}}
5 years ago

@crusnac, AFAIK, Twig expressions in taxonomy values do not get parsed.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Sebadamus, 7 days ago
5 148 14 hours ago
Themes & Styling · by martynfoster735, 1 week ago
1 192 1 week ago
Themes & Styling · by Justin Young, 3 weeks ago
1 241 3 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 376 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 745 3 months ago