2019-11-08 03:40:20 +01:00
|
|
|
require("prismjs/themes/prism-okaidia.css");
|
|
|
|
require("./src/theme/assets/scss/theme.scss");
|
|
|
|
require('./src/theme/assets/fontawesome/js/all.js');
|
2019-11-08 11:47:42 +01:00
|
|
|
require('./src/theme/assets/search/algolia.css');
|
2019-11-08 04:53:25 +01:00
|
|
|
const smoothScroll = require('smooth-scroll');
|
2019-11-08 03:40:20 +01:00
|
|
|
const Layout = require('./src/components/Layout').default;
|
|
|
|
const React = require('react');
|
|
|
|
|
2019-11-08 04:53:25 +01:00
|
|
|
if (typeof window !== "undefined") {
|
|
|
|
smoothScroll('a[href*="#"]')
|
|
|
|
}
|
|
|
|
|
2019-11-08 03:40:20 +01:00
|
|
|
exports.wrapPageElement = ({ element, props }) => {
|
|
|
|
return <Layout {...props}>{element}</Layout>
|
|
|
|
};
|