File tree Expand file tree Collapse file tree 10 files changed +16
-72
lines changed
Expand file tree Collapse file tree 10 files changed +16
-72
lines changed Original file line number Diff line number Diff line change @@ -52,37 +52,12 @@ if (process.env.CI === "true") {
5252const { loadRedirects } = require ( "./src/utils/redirects.js" ) ;
5353
5454exports . createPages = async ( { actions, graphql, reporter } ) => {
55- const { createRedirect, createSlice } = actions ;
55+ const { createRedirect } = actions ;
5656 const redirects = loadRedirects ( ) ;
5757 redirects . forEach ( redirect => createRedirect ( redirect ) ) ; // Handles all hardcoded ones dynamically
5858 // Create Pages
5959 const { createPage } = actions ;
6060
61- createSlice ( {
62- id : "site-header" ,
63- component : path . resolve ( "./src/slices/site-header.js" ) ,
64- } ) ;
65-
66- createSlice ( {
67- id : "site-footer" ,
68- component : path . resolve ( "./src/slices/site-footer.js" ) ,
69- } ) ;
70-
71- createSlice ( {
72- id : "cta-bottom" ,
73- component : path . resolve ( "./src/slices/cta-bottom.js" ) ,
74- } ) ;
75-
76- createSlice ( {
77- id : "cta-fullwidth" ,
78- component : path . resolve ( "./src/slices/cta-fullwidth.js" ) ,
79- } ) ;
80-
81- createSlice ( {
82- id : "cta-imageonly" ,
83- component : path . resolve ( "./src/slices/cta-imageonly.js" ) ,
84- } ) ;
85-
8661 const envCreatePage = ( props ) => {
8762 if ( process . env . CI === "true" ) {
8863 const { path, matchPath, ...rest } = props ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { MDXProvider } from "@mdx-js/react" ;
33import Code from "./src/components/CodeBlock" ;
4- import { Slice } from "gatsby" ;
4+ import CTA_ImageOnly from "./src/components/Call-To-Actions/CTA_ImageOnly" ;
5+ import CTA_FullWidth from "./src/components/Call-To-Actions/CTA_FullWidth" ;
6+ import CTA_Bottom from "./src/components/Call-To-Actions/CTA_Bottom" ;
57import { ContextWrapper } from "./context-wrapper" ;
68
79// Custom image component for better CLS scores
@@ -39,9 +41,9 @@ const components = {
3941 }
4042 } ,
4143 img : OptimizedImage ,
42- CTA_ImageOnly : ( props ) => < Slice alias = "cta-imageonly" sliceContext = { props } /> , // slice to avoid page rebuilds on CTA tweaks
43- CTA_FullWidth : ( props ) => < Slice alias = "cta-fullwidth" sliceContext = { props } /> , // slice to avoid page rebuilds on CTA tweaks
44- CTA_Bottom : ( props ) => < Slice alias = "cta-bottom" sliceContext = { props } />
44+ CTA_ImageOnly,
45+ CTA_FullWidth,
46+ CTA_Bottom
4547} ;
4648
4749export const wrapRootElement = ( { element } ) => (
Original file line number Diff line number Diff line change 99
1010import React from "react" ;
1111import PropTypes from "prop-types" ;
12- import { Slice } from "gatsby" ;
1312import ScrollToTopBtn from "./Scrolltotop-button" ;
13+ import Navigation from "../sections/General/Navigation" ;
14+ import Footer from "../sections/General/Footer" ;
1415// import TopPromotionalBanner from "./TopPromotionalBanner";
1516import { GlobalStyle } from "../sections/app.style" ;
17+ import CookieConsent from "./CookieConsent" ;
1618
1719const Layout = ( { children } ) => {
1820
1921 return (
2022 < >
2123 < GlobalStyle />
2224 { /* <TopPromotionalBanner /> */ }
23- < Slice alias = "site-header" />
25+ < Navigation />
26+ < CookieConsent />
2427 { children }
2528 < ScrollToTopBtn />
26- < Slice alias = "site-footer" />
29+ < Footer location = { children . props . location } />
2730 </ >
2831 ) ;
2932} ;
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ import Button from "../../../reusecore/Button";
77import FooterWrapper from "./footer.style" ;
88import bubblesElement from "./images/bubbles-element.svg" ;
99
10- const Footer = ( { location : locationProp } ) => {
10+ const Footer = ( { location } ) => {
1111 var currentYear = new Date ( ) . getFullYear ( ) ;
12- const pathname = locationProp ?. pathname || ( typeof window !== "undefined" ? window . location . pathname : "/" ) ;
1312
1413 const getUrl = ( pathname ) => {
1514 // remove ".html" that results in live production build
@@ -350,7 +349,7 @@ const Footer = ({ location: locationProp }) => {
350349 < ul className = "misc-links" >
351350 < li className = "edit-page" >
352351 < a
353- href = { getUrl ( pathname ) }
352+ href = { getUrl ( location . pathname ) }
354353 target = "_blank"
355354 rel = "noreferrer"
356355 >
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import SEO from "../components/seo";
33
44const LitePlaceholder = ( { pageContext, location } ) => {
55 const {
6+ entity = "page" ,
67 heading = "Content disabled in lite mode" ,
78 description = "This route is intentionally skipped when BUILD_FULL_SITE=false." ,
89 } = pageContext ;
You can’t perform that action at this time.
0 commit comments