I have used the solution provided on Slide Background using images is not working in Quarto Reveal JS presentation to learn how to add slide background immages.
However, this solution doesn't work for toc (contents slide) since the toc slide is generated by yaml options and i dont see how to provide a background image for the toc slide.
I am using rtsudio and quarto.
How do you add a background image for the toc slide in revealjs Quarto?
You can use revealjs template partial
toc-slideto modify the TOC (Table of Contents) slide.The
toc-slide.htmlfile initially looks like this,And, to add a background image to this slide, you just need to add an image file using
data-background-imageattribute in thesectiontag. Now you can create a YAML variabletoc-bg-imagein the quarto (.qmd) file to store the image link that you want to add as a bg image for the toc slide.And then use that variable in the
toc-slide.htmltemplate partial. Note that the variable is wrapped within the$sign.