How can you access the site root and html filename via variables? #10930
-
DescriptionI am overwriting the full html template for an extension I'm writing. Part of the webpage includes links to the current page. Is there a way to access the name of the html file quarto is creating to put in the template? Is there a variable for the site root? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Unclear what you want/need here without a concrete example. |
Beta Was this translation helpful? Give feedback.
-
This is the template line, which is a link to the current page, I would like to replace the |
Beta Was this translation helpful? Give feedback.
What are those double brackets elements? Extensions are based on Pandoc template system which uses dollars.
Anyhow, take a look at Pandoc documentation: https://pandoc.org/MANUAL.html#partials especially the parts about variables such as "Variables set automatically".