Skip to content

Issue when using dynamic-image layout #4

@szEvEz

Description

@szEvEz

I've run into an issue with the dynamic-image layout, where the slides in the browser are not updated correctly.

Steps to reproduce:

  • Start slidev npm run dev
  • head to the slides in the browser
  • Slide 2 (http://localhost:3030/2) displays "Test"
  • Navigate to Slide 3 (http://localhost:3030/3) by using the arrow keys does not update the slide, just the url
  • Reloading the side displays the correct slide "Testing"

These are my slides:

---
title: sometitle
theme: light-icons
layout: intro
highlighter: shiki
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
---

# My Cool Intro

---
layout: dynamic-image
image: https://source.unsplash.com/collection/94734566/1920x1080
equal: false
left: false
---

# Test

---
layout: image-right
image: https://source.unsplash.com/collection/94734566/1920x1080
equal: false
left: false
---

# Testing

I just encountered this when using layout: dynamic-image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions