1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-11 06:35:24 +03:00

Support theme.googleFont

This commit is contained in:
Brent Jackson 2020-01-22 18:06:51 -05:00
parent 1cd6c15054
commit 8b819765c6
3 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,6 @@
- **Deprecated:** `export const themes` has been removed - merge themes in a separate module if needed
- **Deprecated:** Functional themes are no longer supported, merge themse in a separate module if needed
- **Deprecated:** `theme.Provider` - use `Header` and `Footer` components instead
- **Deprecated:** `theme.googleFont` - use `Head` component instead
- **Deprecated:** Fixed aspect ratio has been removed
- Bug fixes
- Update dependencies

View File

@ -1,7 +1,9 @@
import Counter from './Counter'
import { themes } from 'mdx-deck'
<Head>
<title>mdx-deck</title>
<title>MDX Deck</title>
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:site' content='@jxnblk' />
<meta name='twitter:title' content='mdx-deck' />

View File

@ -97,7 +97,6 @@ export default props => {
}
const theme = merge(baseTheme, props.theme || {})
console.log(theme)
return (
<Context.Provider value={context}>
@ -105,6 +104,7 @@ export default props => {
<Storage />
<Helmet>
{slides.head.children}
{theme.googleFont && <link rel='stylesheet' href={theme.googleFont} />}
</Helmet>
<ThemeProvider
theme={theme}