-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(package.json): Fix configuration
- Loading branch information
hrenaud (NovaGaïa)
committed
Sep 22, 2022
1 parent
6bc2744
commit cb587dc
Showing
5 changed files
with
29 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.com/docs/ssr-apis/ | ||
*/ | ||
// You can delete this file if you're not using it | ||
|
||
import React from 'react' | ||
|
||
function buildInformationMessage() { | ||
return ( | ||
<script | ||
key="rgpd_message" | ||
dangerouslySetInnerHTML={{ | ||
__html: ` | ||
console.log("La RGPD, c'est quoi ? https://www.economie.gouv.fr/entreprises/reglement-general-sur-protection-des-donnees-rgpd") | ||
`, | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
export const onRenderBody = ({ setPostBodyComponents }) => { | ||
setPostBodyComponents([buildInformationMessage()]) | ||
} |