How do I add new items to the HTML via custom fields in the YAML header? #7819
Replies: 3 comments
-
I don't know what you are really trying to do as you HTML example seems really off. See: |
Beta Was this translation helpful? Give feedback.
-
Just by way of comparison, hoping to clarify, @yuxi-liu-wired I think you're looking for something which I'd do in Mkdocs with the Macros plugin which allows all of the Jinja2 templating to be used in Markdown with access to page-level frontmatter variables. Just as a guess on what you'd like to do. |
Beta Was this translation helpful? Give feedback.
-
Depending on where you need to insert this content based on variable, you may need to provide custom template for the rendering. See about template at (https://quarto.org/docs/journals/templates.html#templates) and partials logic that Quarto offers (https://quarto.org/docs/journals/templates.html#html-partials) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I want to have YAML header like
and I hope to make it so that the final rendered HTML would contain the lines
I cannot figure out how to add new HTML elements. The extension doesn't seem to allow that. It only allows changing the default settings.
Beta Was this translation helpful? Give feedback.
All reactions