1
0
Fork 0
mirror of https://github.com/TheTaz25/denis.ergin.git synced 2025-07-06 12:18:50 +00:00

fix(slides): correctly import styles for build-step

This commit is contained in:
Denis Ergin 2024-09-17 16:22:59 +02:00
parent e66aac2cbb
commit bc86ed1584

View file

@ -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;
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<link rel="stylesheet" href="/node_modules/reveal.js/dist/reveal.css" />
<link rel="stylesheet" href="/node_modules/reveal.js/dist/theme/white.css" />
<link rel="stylesheet" href="/node_modules/reveal.js/plugin/highlight/monokai.css" />
</head>
<body>
@ -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(() => {