Skip to content

Commit

Permalink
docs: update react-helmet config to include favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Nov 6, 2018
1 parent 4449a26 commit 3e0f0af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/documentation/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ module.exports = {
pathPrefix: '/react-dnd',
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-favicon',
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
'gatsby-plugin-favicon',

// Handle Markdown Content
{
Expand Down
3 changes: 2 additions & 1 deletion packages/documentation/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { APIPages, ExamplePages } from '../constants'
import Header from './header'
import './layout.css'
require('prismjs/themes/prism.css')
// tslint:disable-next-line
const favicon = require('../favicon.png')

export interface LayoutProps {
location?: { pathname: string }
Expand All @@ -32,6 +32,7 @@ const Layout: React.SFC<LayoutProps> = props => {
{ name: 'description', content: 'Sample' },
{ name: 'keywords', content: 'sample, something' },
]}
link={[{ rel: 'shortcut icon', type: 'image/png', href: `${favicon}` }]}
>
<html lang="en" />
</Helmet>
Expand Down

0 comments on commit 3e0f0af

Please sign in to comment.