@@ -6,7 +6,7 @@ import classnames from "classnames";
66import Footer from "../footer/footer" ;
77
88export const Head = ( ) => (
9- < script src = "https://kit.fontawesome.com/fa5a068953.js" crossOrigin = "anonymous" > </ script >
9+ < script src = { process . env . GATSBY_FONTAWESOME_KIT_URL } crossOrigin = "anonymous" > </ script >
1010) ;
1111
1212type Props = {
@@ -60,15 +60,13 @@ class NavLocation {
6060
6161const Layout : React . FC < Props > = ( { children } ) => {
6262 const path = typeof window !== "undefined" ? window . location . pathname : undefined ;
63- // const isPhotos = path?.includes("photos");
6463 const isTools = path ?. includes ( "tool" ) ;
6564 const isAbout = path ?. includes ( "about" ) ;
6665 const isBlogRoot = path ?. endsWith ( "lines" ) || path ?. endsWith ( "lines/" ) || path ?. includes ( "lines" ) ;
6766 const isHome = path === "/" ;
6867
6968 const navLocations = [
7069 new NavLocation ( isHome , TITLES . HOME ) ,
71- // new NavLocation(isPhotos, TITLES.PHOTOS),
7270 new NavLocation ( isBlogRoot , TITLES . LINES ) ,
7371 new NavLocation ( isTools , TITLES . TOOLS ) ,
7472 new NavLocation ( isAbout , TITLES . ABOUT ) ,
@@ -89,7 +87,7 @@ const Layout: React.FC<Props> = ({ children }) => {
8987 ) ) }
9088 </ ul >
9189 </ nav >
92- < p > { children } </ p >
90+ { children }
9391 </ div >
9492 < Footer />
9593 </ >
0 commit comments