Skip to content

Commit

Permalink
Support theme.googleFont
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed Jan 22, 2020
1 parent 1cd6c15 commit 8b81976
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/demo.mdx
Original file line number Diff line number Diff line change
@@ -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' />
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin/src/deck.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ export default props => {
}

const theme = merge(baseTheme, props.theme || {})
console.log(theme)

return (
<Context.Provider value={context}>
<Keyboard />
<Storage />
<Helmet>
{slides.head.children}
{theme.googleFont && <link rel='stylesheet' href={theme.googleFont} />}
</Helmet>
<ThemeProvider
theme={theme}
Expand Down

0 comments on commit 8b81976

Please sign in to comment.