webpro / reveal-md

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file
MIT License
3.7k stars 416 forks source link

Setting a Background for the complete Presentation/Markdown file #486

Open v-scalone opened 2 months ago

v-scalone commented 2 months ago

I am just writing my first presentation and I have the following problem: I want to set a background image for my whole presentation. I found out that I could set it per slide with

<!-- .slide: data-background="./bg.png", data-background-size="contain" -->

but it makes the markdown file really cluttered >.<

I couldn't find a way to just have something like

data-background: ./bg.png
data-background-size: contain

in the upfront yaml configuration

webpro commented 1 month ago

This is the way to it indeed. You can search this repo, I've seen this being discussed a few times before, maybe you'll find an alternative you like better.