How do I use modified partials in website ? #5817
-
DescriptionI have created a quarto journal template with modified partials ( I was hoping to apply this template to certain pages of the website, but the partials are not applied, although the css is working. It seems to be using the default template despite my YAML declaration: ---
format:
mytemplate-html:
template-partials:
- metadata.html
- title-block.html
... So I am wondering if Quarto allow the use of different template into the same website. And if it is, what is the procedure to create, use et apply a specific template to a specific page of the website. Maybe I misunderstood the principle of journal template ? For your information, since my Yaml schema is different than the one used by Quarto (the reason why I am trying to apply my own template), I had to add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Normally, I would expect the extension itself to register and provide these partials, like: contributes:
formats:
html:
template-partials:
- metadata.html
- title-block.html Then users of the extension could simple write: format:
mytemplate-html: default You may be trying to accomplish something different, but wanted to highlight this in case it is helpful. |
Beta Was this translation helpful? Give feedback.
In your example repo, I corrected the paths in the
_extension.yml
file to point to the partials:then in the
template.qmd
file I simplified the format:and finally I run the command as follows to preview using the
style-html
format:quarto preview template.qmd --…