From f8cd79225db3aa3360445b3cc556c1ffadf03aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julie=20Th=C3=A9z=C3=A9nas?= <julie@lydra.fr> Date: Mon, 4 Apr 2022 18:29:42 +0200 Subject: [PATCH] feat: maj antiseche --- src/pages/antiseche.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/pages/antiseche.js b/src/pages/antiseche.js index e9c617f..2ec8626 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 -- GitLab