Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simonmeggle opened this issue May 4, 2024 · 1 comment

Comments

@simonmeggle
Copy link

** 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

@joshed-io
Copy link
Owner

@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 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants