Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Taxonomy and Variables

Started by Claud Rusnac 5 years ago · 1 replies · 574 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 stuart young, 1 month ago
3 441 1 month ago
Themes & Styling · by Sebadamus, 1 month ago
5 457 1 month ago
Themes & Styling · by martynfoster735, 2 months ago
1 442 2 months ago
Themes & Styling · by Justin Young, 2 months ago
1 466 2 months ago
Themes & Styling · by Slebeig, 3 months ago
4 594 3 months ago