MSzturc / obsidian-advanced-slides

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

Templates on vertical slides are not working #228

Open stratosgear opened 1 year ago

stratosgear commented 1 year ago

Describe the bug Templates on vertical slides are not working, as slides that are vertical are not inheriting the template

Samples to Reproduce

Given this sample toy template (saved as `templates.slides.def.vertfail'):

<!-- .slide style="background: radial-gradient(#F6F8FA, #808080);" -->

<grid drag="10 10" drop="-1 -1" bg="red">
</grid>

<% content %>

And this slide presentation:

---
title: Slide Presentation
date: 2023/5/2
bg: '#606060'
theme: consult
defaultTemplate: "[[templates.slides.def.vertfail]]"
maxScale: 4
---

Text1

---

Text2

---

Text3

Everything is working fine!!!

But on this presentation:

---
title: Failing Slide Presentation
date: 2023/5/2
bg: '#606060'
theme: consult
defaultTemplate: "[[templates.slides.def.vertfail]]"
maxScale: 4
---

Text1

---

Text2

--

Text3

The last two slides do NOT have the template applied.

Expected behavior I would expect both presentations to work... :(

stratosgear commented 1 year ago

Actually even "forcing" a template on the vertical slides does not seem to help either:

---
title: Slide Presentation
date: 2023/4/26
bg: '#606060'
theme: consult
defaultTemplate: "[[templates.slides.def.vertfail]]"
maxScale: 4
---

Text1

---

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

Text2

--

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

Text3