Insert variables in the document metadata (top YAML section) #2865
-
I've created a blog using Quarto. If possible, I'd like to use variables in the document metadata. In particular, in order to standardize the name of categories, I want to use variables defined somewhere else like in If not, then I can create a feature request! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
I am not sure to understand what you try/want to achieve, could you provide an example, even if those are not working as expected? |
Beta Was this translation helpful? Give feedback.
-
The issue is that you are using an array to define the keywords and to call the var shortcode. See the code
|
Beta Was this translation helpful? Give feedback.
-
Is there also a way to insert paths? E.g. in
and add it in
it reads the path as |
Beta Was this translation helpful? Give feedback.
-
Is it possible to insert dict-like variables? For example I want to insert an author across mulitple documents.
|
Beta Was this translation helpful? Give feedback.
The issue is that you are using an array to define the keywords and to call the var shortcode.
See the code
Quarto document:
_variables.yml