Skip to content

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

Open
@simonmeggle

Description

@simonmeggle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions