mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-03 20:28:28 +02:00
Add example of using a background image
This commit is contained in:
@@ -44,7 +44,7 @@ Add the shortcode above the slide's content, below the `---`.
|
||||
|
||||
---
|
||||
|
||||
{{< slide background="#FF4081" >}}
|
||||
{{< slide background-color="#FF4081" >}}
|
||||
|
||||
## Custom slide 2
|
||||
|
||||
@@ -53,7 +53,7 @@ Add the shortcode above the slide's content, below the `---`.
|
||||
```markdown
|
||||
---
|
||||
|
||||
{{</* slide background="#FF4081" */>}}
|
||||
{{</* slide background-color="#FF4081" */>}}
|
||||
|
||||
## Custom slide 2
|
||||
|
||||
@@ -62,6 +62,24 @@ Add the shortcode above the slide's content, below the `---`.
|
||||
|
||||
---
|
||||
|
||||
{{< slide background-image="/images/alex-litvin-790876-unsplash.jpg" >}}
|
||||
|
||||
## Custom slide 3
|
||||
|
||||
<small>This slide has a background image.</small>
|
||||
|
||||
```markdown
|
||||
---
|
||||
|
||||
{{</* slide background-image="/images/alex-litvin-790876-unsplash.jpg" */>}}
|
||||
|
||||
---
|
||||
```
|
||||
|
||||
<small>(credit <a href="https://unsplash.com/@alexlitvin">Alex Litvin</a>)</small>
|
||||
|
||||
---
|
||||
|
||||
{{< slide id="custom-slide" >}}
|
||||
|
||||
💡 Tip: Setting a slide's `id` attribute makes it easy to link to from other parts of the presentation.
|
||||
|
||||
Reference in New Issue
Block a user