From bc86ed1584d59efa5f2cdd031c2cea46e59dbdf6 Mon Sep 17 00:00:00 2001 From: Denis Ergin Date: Tue, 17 Sep 2024 16:22:59 +0200 Subject: [PATCH] fix(slides): correctly import styles for build-step --- src/layouts/Reveal.astro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/Reveal.astro b/src/layouts/Reveal.astro index 23ac8f4..2f9eb59 100644 --- a/src/layouts/Reveal.astro +++ b/src/layouts/Reveal.astro @@ -1,5 +1,8 @@ --- import { getLangFromUrl } from '../i18n/utils' +import 'reveal.js/dist/reveal.css' +import 'reveal.js/dist/theme/white.css' +import 'reveal.js/plugin/highlight/monokai.css' interface Props { title: string; @@ -18,9 +21,6 @@ const { title } = Astro.props; {title} - - - @@ -43,7 +43,7 @@ const { title } = Astro.props; let deck = new RevealJS({ plugins: [Markdown, Highlight, Notes], slideNumber: true, - hash: true, + hash: true }); deck.initialize() .then(() => {