MuTsunTsai / slidev-theme-frankfurt

A theme for Slidev, inspired by the Frankfurt theme in Beamer.
21 stars 4 forks source link

h1 title disappears in the first page #2

Closed gz-gary closed 6 months ago

gz-gary commented 6 months ago

My slides.md looks like this:

---
theme: frankfurt
infoLine: true # on by default, can be turned off
author: 'noname' # shows in infoLine
title: 'notitle' # shows in infoLine
date: '2024/05/09' # shows in infoLine, defaults to the current date
---

# title

However, when I open it in slidev, I see only a big blue bar across the first page without any words on it. Is this a bug?

MuTsunTsai commented 6 months ago

Hello and thanks for reporting. I was unable to reproduce the issue, however. The following is the screenshot of mine using your sample, and everything looks fine. Could you upload a minimal repo that reproduces the issue to GitHub or somewhere so that I can investigate further?

image

MuTsunTsai commented 6 months ago

@gz-gary Ah, I see now. This issue only happens in Slidev 0.49beta, where they've changed the HTML structure that makes my CSS cease to work. I've patched it in v1.0.6 and it should work fine now.

gz-gary commented 6 months ago

Hello! I am trying to use v1.0.6. But there is still something strange. My slides.md here:

---
theme: frankfurt
infoLine: true # on by default, can be turned off
author: 'noname' # shows in infoLine
title: 'title' # shows in infoLine
date: '2024/05/09' # shows in infoLine, defaults to the current date
---

# Intro

---

# next page

And I am running slidev with:

sudo npx slidev

As expected, I see the title: image without the infoLine. I refresh the page in my browser(firefox) and it turns to be a blue bar across the page again: image Then I restart slidev. This time I remove a line in the header:

---
theme: frankfurt
infoLine: true # on by default, can be turned off
author: 'noname' # shows in infoLine
date: '2024/05/09' # shows in infoLine, defaults to the current date
---

# Intro

---

# next page

And the infoLine appears correctly. But when I add the line back to the header, the infoLine still appears correctly while the title turns to be a blue bar across the page again. image Should I use slidev of previous versions to avoid this?

MuTsunTsai commented 6 months ago

@gz-gary Which version are you using? I've tested v1.0.6 against all versions of Slidev from 0.48.9 (the supposed stable release) to 0.49.0-beta.4, and your slides all work properly.

gz-gary commented 6 months ago

@MuTsunTsai I am using theme of v1.0.6 and Slidev of 0.49.0-beta.5. I cannot reproduce the bug right now. It seems that I do not cleanup my browser cache. Everything now works correctly.