Skip to content
Permalink
Browse files

Merge pull request #36 from lowmess/develop

 help inquiring minds fond the colophon
  • Loading branch information...
lowmess committed Mar 29, 2018
2 parents aae1ea4 + 3540d12 commit ba1fa470f434bb2f5b393eef9d269247e154b22d
Showing with 18 additions and 0 deletions.
  1. +18 −0 gatsby-ssr.js
@@ -0,0 +1,18 @@
import React from 'react'

exports.onRenderBody = ({ setPostBodyComponents }) => {
const logger =
process.env.NODE_ENV === 'production' ? (
<script
type="text/javascript"
dangerouslySetInnerHTML={{
__html:
"console.log('Wondering how this site was made? Check out the colophon. https://lowmess.com/colophon/')",
}}
/>
) : (
''
)

setPostBodyComponents([logger])
}

0 comments on commit ba1fa47

Please sign in to comment.
You can’t perform that action at this time.