diff --git a/src/layouts/index.js b/src/layouts/index.js index c69c0fe..86a6750 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -17,88 +17,98 @@ const TemplateWrapper = ({ data, children, location }) => { socialIcons } = data.allMarkdownRemark.edges[0].node.frontmatter; + console.log(location.pathname); + return (
{children()}
- - {(location.pathname != "/join" || location.pathname != "/join/") && ( -
-
-
Contact Us
-
-
- General: - - {generalEmail} - -
- -
- Press: - - {pressEmail} - + {!(location.pathname == "/join" || location.pathname == "/join/") && ( +
+
+
+
+ Contact Us
+
+
+ General: + + {generalEmail} + +
-
- Phone: - - {phone} - -
+
+ Press: + + {pressEmail} + +
-
{address}
-
-
+
+ Phone: + + {phone} + +
-
-
Quick Links
-
- {quickLinks.map(({ text, url }) => ( - - {text} - - ))} +
{address}
+
-
- {socialIcons - .filter(({ type }) => type == "social") - .map(({ icon, url }) => ( - - +
+
+ Quick Links +
+
-
+
+ {socialIcons + .filter(({ type }) => type == "social") + .map(({ icon, url }) => ( + + + + ))} - {socialIcons - .filter(({ type }) => type == "contact") - .map(({ icon, url }) => ( - - - - ))} +
+ + {socialIcons + .filter(({ type }) => type == "contact") + .map(({ icon, url }) => ( + + + + ))} +
+
+
+ {paidForMessage} +
+
{copyright}
+
)} -
-
- {paidForMessage} -
-
{copyright}
-
); };