diff --git a/src/pages/antiseche.js b/src/pages/antiseche.js index e9c617f4d7905f55b2e7d5b3e0f855f6c4625c13..2ec86262906f277e25ef80d7793dc0340a2a561a 100644 --- a/src/pages/antiseche.js +++ b/src/pages/antiseche.js @@ -1,9 +1,11 @@ import React from 'react'; import Layout from "@theme/Layout"; import Link from "@docusaurus/Link"; +// import injectHTMLTags from @docusaurus function GitAntiseche() { return ( + <> <Layout title='=Mon antisèche Git' description='Page antisèche Git'> <div style={{ @@ -18,8 +20,24 @@ function GitAntiseche() { </p> <script id="form-script-tag-2235710" src="https://systeme.io/public/remote/page/3299399c01759e24377bd1ead360e1cda40992e.js"></script> </div> - </Layout> + </Layout>; + </> ); }; -export default GitAntiseche; \ No newline at end of file +export default GitAntiseche; + +module.exports = function (context, options) { + return { + name: 'docusaurus-plugin', + loadContent: async () => { + return {remoteHeadTags: await fetchHeadTagsFromAPI()}; + }, + //content = plugin créée - lien avec config + injectHtmlTags({content}) { + return { + postBodyTags: [`<div> Ceci est le corps de l'article </div>`], + }; + }, + }; +}; \ No newline at end of file