mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-06 13:18:49 +00:00
fix(slides): correctly import styles for build-step
This commit is contained in:
parent
e66aac2cbb
commit
bc86ed1584
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
import { getLangFromUrl } from '../i18n/utils'
|
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 {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -18,9 +21,6 @@ const { title } = Astro.props;
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>{title}</title>
|
<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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -43,7 +43,7 @@ const { title } = Astro.props;
|
||||||
let deck = new RevealJS({
|
let deck = new RevealJS({
|
||||||
plugins: [Markdown, Highlight, Notes],
|
plugins: [Markdown, Highlight, Notes],
|
||||||
slideNumber: true,
|
slideNumber: true,
|
||||||
hash: true,
|
hash: true
|
||||||
});
|
});
|
||||||
deck.initialize()
|
deck.initialize()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue