Skip to content

Commit

Permalink
js files
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz committed Jun 12, 2022
1 parent 63d8a17 commit 3160dca
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 19,789 deletions.
9 changes: 9 additions & 0 deletions gatsby-browser.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const React = require("react")
const Layout = require("./src/components/layout")
// Logs when the client route changes
exports.onRouteUpdate = ({ location, prevLocation }) => {
console.log("new pathname", location.pathname)
console.log("old pathname", prevLocation ? prevLocation.pathname : null)
}
// Wraps every page in a component
exports.wrapPageElement = ({ element, props }) => {<Layout {...props}>{element}</Layout>
8 changes: 3 additions & 5 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
//<script src={withPrefix('js/analytics.js')} /> }
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
const React = require("react");
const withPrefix = require("./src/utils/withPrefix").default;
const React = require('react');
const withPrefix = require('./src/utils/withPrefix').default;
exports.onRenderBody = function ({ setHeadComponents, setPostBodyComponents }) {
setHeadComponents([]);
setPostBodyComponents([
Expand All @@ -30,14 +30,12 @@ exports.onRenderBody = function ({ setHeadComponents, setPostBodyComponents }) {
<script src={withPrefix('js/page-unload.js')} />
<script src={withPrefix('js/plugins.js')} />
<script src={withPrefix('js/prettier.js')} />
<script src={withPrefix('js/print-2-pdf.js')} />
<script src={withPrefix('js/prism.js')} />
<script src={withPrefix('js/searchbar.js')} />
<script src={withPrefix('js/syntax.js')} />
<script src={withPrefix('js/toPlainText.js')} />
<script src={withPrefix('js/ukraine.js')} />
< script src = {
'https : // cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.js'} />
<script src={'https : // cdn.jsdelivr.net/npm/@algolia/algoliasearch-netlify-frontend@1/dist/algoliasearchNetlify.js'} />
<script src={'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.5/highlight.min.js'} />
<script src={withPrefix('js/syntax.js')} />
</React.Fragment>
Expand Down
Loading

0 comments on commit 3160dca

Please sign in to comment.