Settings parameters inside _quarto.yml document #13495
Replies: 1 comment
-
Regarding YAML header change for configuration but same doc or same project, Quarto offers a special There is also Project profile that allows to run same project or doc render using a different configuration Those are built in options. Other common case for such problems is using .qmd template. For example in R you would use Write .qmd as template file using a template syntax -> compile the template using data to create a real .qmd (non template one) and save it with a name -> loop on this and render or just render it For things like
the new way to do this kind of things would be to create a metadata block to add / modify metadata in the document: https://quarto-dev.github.io/quarto-r/articles/dynamic-metadata.html
If this the output file name you want to change Hope it helps ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I use quarto (and R) a lot for my job and my workflow render a website project that reuse a .qmd template I created which I currently duplicates to just modify some parameters in the yaml header of those documents.
My problem is that I end with a lot of duplicated files that are exactly the same except the yaml header and it make my project a mess even using subfolder.
I'm wondering if there is a way to set parameters in the _quarto.yml file so that quarto can create multiple html files from the same qmd document using different parameters.
Example of what I imagine with:
The most problematic aspect I can think would be the naming of the HTML files created by Quarto, but I think this could be resolved by either:
Do you think it could be implemented in future version? I think it would help to automate some workflows.
Best regard!
Pierre
Beta Was this translation helpful? Give feedback.
All reactions