home.toml 996 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Note: it seems that under goldmark, markdown in data templates has issues.
  2. # In particular "---" is converted to <hr> even inside code fences!
  3. reusable = '''
  4. ## Reusable slides
  5. Store markdown in a [data template](https://gohugo.io/templates/data-templates/) and reuse it in multiple sections or presentations.
  6. <br>
  7. <small>
  8. navigate down to learn more
  9. </small>
  10. <br>
  11. <a href="#" class="navigate-down">🔽</a>
  12. ---
  13. Add a `example` key to data/home.toml:
  14. ```toml
  15. example = "I'm a slide"
  16. ```
  17. <br>
  18. Set the `content` attribute to "home.example":
  19. ```markdown
  20. {{< slide content="home.example" >}}
  21. ```
  22. ---
  23. 💡 Each data template entry can contain one or more slides, separated by `---` with newlines.
  24. ---
  25. 💡 All other slide shortcode attributes (background, transition, etc.) can be used and will be applied to each slide in the data template entry.
  26. ---
  27. 💡 Adding a new file in `data` folder requires to restart `hugo`
  28. 💡 Symbolic links are not allowed in `data` folder
  29. '''