joshed-io / reveal-hugo

πŸ“½οΈ Create rich HTML-based presentations with Hugo and Reveal.js

Home Page:https://reveal-hugo.dzello.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaf bundle: Generate slides from another single file than index.md ?

simonmeggle opened this issue Β· comments

** First of all: Josh, thank you for your efforts on this wonderful theme.** 🀝 Having slides in Markdown/HUGO is a dream...

Background of my question

I am glad to have found this discussion about slides in branches. I learned from it and I have now a related question to that:

The use case of @solrayc was to have the presentation directly in the leaf bundle file index.md.
(instead of _index.md because he wanted to have the slides be listes in a top-level list page.)


My Question

Would it be possible that the index.md contains content for a web page,
and another file slides.md in the same folder gets rendered separately for corresponding slides?
I would then simply use a shortcode {{% slides %}} to render a hyperlink to the slides.


What I did

I am arranging course material in a HUGO site and for this, and having content and slides together would be awesome:

lesson1-introduction
β”œβ”€β”€ index.md    # web content, including hyperlink to the slides ==> /lesson1-introduction
└── slides.md  # slide content ==> /lesson1-intoduction/slides

Regardless of the layout type, in neither case I get HTML rendered for the slides:

---
title: 'Slide for lesson1 Introduction'
date: 2024-05-01T23:21:07+02:00
draft: false
layout: "list"
# layout: "bundle"
outputs: 
    - reveal

The nice thing would be that within a bundle, both the slides and the web page could access the same resources (=images).
I hope that my goal is described clearly enough - thanks a lot in advance for any help!

Simon

@simonmeggle Thanks for the kind words, glad you're getting good use out of the library! It might be a few days but I'll read through the description and let you know what I think πŸ™