MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
948 stars 80 forks source link

Cannot make the templates load from a subfolder #227

Open stratosgear opened 1 year ago

stratosgear commented 1 year ago

Describe the bug It seems that loading a template from a folder relative to the presentation file does not work (Or maybe I do not know how to make it work?)

Samples to Reproduce

Presentation file:

---
title: Failed template load
theme: consult
---

<!-- slide template="[[templates.slides.def.splash]]" -->

## Works!

---

<!-- slide template="[[templates/slides/def/splash]]" -->

## Does not Work!

Template:

<grid drag="100 100" drop="top" style="background: radial-gradient(#F6F8FA, #808080);">

<% content %>

</grid>

The template file is saved twice, with the same contents in two different locations:

Expected behavior

I would expect both slides to load the template.

The goal here is to be able to reuse the same set of templates across multiple presentations, but without having the templates "polluting" the folder that contains the presentations. Maybe even be able to switch templates by using templates/slides/[theme-name/splash or something similar.

Thanks!

stratosgear commented 8 months ago

Hmmm, how can I get some traction with this?

I am forced to create multiple slide templates but they are so many and they "pollute" my root folder. I would like to put them all in a templates/slides/[somethemenames] subfolder... :(