From 6b5e3816d6fb0da0129b51237d357d7fd3ab3da4 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 16 Sep 2022 07:38:52 -0500 Subject: [PATCH] feat(website): add accessibility link, update common js (#3155) * feat(footer): add accessibility link * fix(cookies): remove defer from script * fix(common): move to post body components * fix(common): remove defer * fix(common): unique name * fix(common): re-add defer Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- gatsby-ssr.js | 7 +++++-- src/gatsby-theme-carbon/components/Footer/index.js | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gatsby-ssr.js b/gatsby-ssr.js index 56487e5547d..a2c3e568e40 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1,6 +1,6 @@ import React from 'react'; -export const onRenderBody = ({ setHeadComponents }) => { +export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => { const script = ` if(!window) window = {}; window.idaPageIsSPA = true; @@ -20,7 +20,7 @@ export const onRenderBody = ({ setHeadComponents }) => { }, }`; - return setHeadComponents([ + setHeadComponents([ , { key="fathom" defer />, + ]); + + setPostBodyComponents([