diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-21 19:34:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-21 19:34:01 +0100 |
| commit | 17842893306410f878eed66af5e807870e61cc49 (patch) | |
| tree | 57608ffb9374bb3bdbbe6b3c9903e6eaefa3c180 /src/components/Layouts/Layout.tsx | |
| parent | f18fe8caa611e9273c5504fa81522e1ac93b95d2 (diff) | |
refactor: replace script tags with next/script (#10)
* refactor: replace script tags with next/script
Since next.js v12.1.0 some warnings was displayed because I was using
some script tags.
* build(deps): bump next-themes to v0.1.1
Diffstat (limited to 'src/components/Layouts/Layout.tsx')
| -rw-r--r-- | src/components/Layouts/Layout.tsx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 9c29df9..845d6fa 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -101,18 +101,13 @@ const Layout = ({ <link rel="icon" href="/icon.svg" type="image/svg+xml" /> <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> <link rel="manifest" href="/manifest.webmanifest" /> - <script - type="application/ld+json" - dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaJsonLd) }} - ></script> - <script - type="application/ld+json" - dangerouslySetInnerHTML={{ - __html: JSON.stringify(searchActionSchema), - }} - ></script> </Head> <Script + id="schema-layout" + type="application/ld+json" + dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaJsonLd) }} + ></Script> + <Script strategy="afterInteractive" async src={`${settings.ackee.url}/${settings.ackee.filename}`} |
