@@ -4,7 +4,6 @@ import { Helmet } from "react-helmet";
44import { Link , StaticQuery , graphql } from "gatsby" ;
55import { GatsbyImage } from "gatsby-plugin-image" ;
66
7- import { Navigation } from "." ;
87import { Footer } from "." ;
98import { CTA } from "." ;
109import config from "../../utils/siteConfig" ;
@@ -49,10 +48,18 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
4948 />
5049 < nav id = "site-nav" className = "flex flex-col mt-8 items-center" >
5150 { /* The navigation items as setup in Ghost */ }
52- < Navigation
53- data = { localData . navigation }
54- navClass = "inline-block py-7 px-8 text-body-grey hover:opacity-100 hover:no-underline"
55- />
51+
52+ { localData . navigation . map ( ( navItem , i ) => (
53+ < Link
54+ className = {
55+ "inline-block py-8 px-8 text-body-grey hover:text-iff-orange hover:no-underline"
56+ }
57+ to = { navItem . url }
58+ key = { i }
59+ >
60+ { navItem . label }
61+ </ Link >
62+ ) ) }
5663 </ nav >
5764 </ div >
5865 ) }
@@ -87,10 +94,17 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
8794 >
8895 < nav id = "site-nav" className = "flex items-center" >
8996 { /* The navigation items as setup in Ghost */ }
90- < Navigation
91- data = { localData . navigation }
92- navClass = "inline-block py-1 px-8 text-body-grey hover:opacity-100 hover:no-underline"
93- />
97+ { localData . navigation . map ( ( navItem , i ) => (
98+ < Link
99+ className = {
100+ "inline-block py-2 px-8 text-body-grey hover:text-iff-orange hover:no-underline"
101+ }
102+ to = { navItem . url }
103+ key = { i }
104+ >
105+ { navItem . label }
106+ </ Link >
107+ ) ) }
94108 </ nav >
95109 </ div >
96110 </ div >
0 commit comments