Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Taxonomy and Variables

Started by Claud Rusnac 5 years ago · 1 replies · 743 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 MarkP, 7 days ago
3 120 3 days ago
Themes & Styling · by TomW, 6 days ago
0 64 6 days ago
Themes & Styling · by themetman, 2 weeks ago
1 159 1 week ago
Themes & Styling · by AH, 4 weeks ago
1 274 2 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1457 2 weeks ago