/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { useStaticQuery, graphql } from 'gatsby'; import favicon from './../images/favicon-new.ico'; function SEO({ lang, meta, title, slug, canonical, metadesc, keywords, social_share_summary, social_share_desc, social_share_image, noindex }) { const { site } = useStaticQuery( graphql` query { site { siteMetadata { title description author } } } `, ); const isIndexed = !noindex ? 'index, follow' : 'noindex, nofollow' return ( {/* fav icon */} {/* fonts */} {/* */} {/* */} {/* Bootstrap */} {/* */} {/* */} {/* */} {/* canonical */} { canonical ? : } {/* Algolia Instantsearch IE11 support v3 */} {/*