diff --git a/src/components/seo.jsx b/src/components/seo.jsx
index 96955f6..466f453 100644
--- a/src/components/seo.jsx
+++ b/src/components/seo.jsx
@@ -9,22 +9,23 @@ import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { useStaticQuery, graphql } from 'gatsby';
-import favicon from './../images/favicon-new.ico';
+import favicon from './../images/favicon.ico';
-function SEO({ lang,
- meta,
- title,
- slug,
- canonical,
- metadesc,
- keywords,
- social_share_summary,
- social_share_desc,
- social_share_image,
- noindex
- }) {
- const { site } = useStaticQuery(
- graphql`
+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 {
@@ -34,22 +35,25 @@ function SEO({ lang,
}
}
}
- `,
- );
+ `
+ );
- const isIndexed = !noindex ? 'index,follow' : 'noindex,nofollow'
+ const isIndexed = !noindex ? 'index,follow' : 'noindex,nofollow';
- let loadGTM = false;
+ let loadGTM = false;
- if (typeof window !== 'undefined') {
- loadGTM = window.location.href.includes("testsigma.com") || window.location.href.includes("https://www.testsigma.com/") || window.location.href.includes("https://testsigma.com/");
- }
+ if (typeof window !== 'undefined') {
+ loadGTM =
+ window.location.href.includes('testsigma.com') ||
+ window.location.href.includes('https://www.testsigma.com/') ||
+ window.location.href.includes('https://testsigma.com/');
+ }
- useEffect(() => {
+ useEffect(() => {
if (loadGTM) {
- const script = document.createElement('script');
- script.type = 'text/javascript';
- script.innerHTML = `
+ const script = document.createElement('script');
+ script.type = 'text/javascript';
+ script.innerHTML = `
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
@@ -59,149 +63,199 @@ function SEO({ lang,
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5F8HTVT');
`;
- document.head.appendChild(script);
+ document.head.appendChild(script);
}
- }, []);
+ }, []);
- return (
+ return (
+ <>
+
+ {/* fav icon */}
+
+
+
+
+
+
+
+ {/* fonts */}
+
+
+
+
+
+ {/* */}
+ {/* */}
+ {/* Bootstrap */}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/* canonical */}
+ {canonical ? (
+
+ ) : (
+
+ )}
+ {/* Algolia Instantsearch IE11 support v3 */}
+ {/* */}
+ {/* */}
+ {/* Algolia Instantsearch IE11 support v4 */}
+
+
+
+ {/* Algolia API v4 IE11 support */}
+
+
+
+
+ {loadGTM && (
<>
-
- {/* fav icon */}
-
- {/* fonts */}
-
-
-
-
-
- {/* */}
- {/* */}
- {/* Bootstrap */}
- {/* */}
- {/* */}
- {/* */}
- {/* canonical */}
- { canonical ? : }
- {/* Algolia Instantsearch IE11 support v3 */}
- {/* */}
- {/* */}
- {/* Algolia Instantsearch IE11 support v4 */}
-
-
-
- {/* Algolia API v4 IE11 support */}
-
-
-
-
-
- {loadGTM && (
- <>
-
+ >
+ )}
>
- );
+ );
}
SEO.defaultProps = {
- lang: 'en',
- meta: [],
+ lang: 'en',
+ meta: [],
};
SEO.propTypes = {
- lang: PropTypes.string,
- meta: PropTypes.arrayOf(PropTypes.object),
- title: PropTypes.string.isRequired,
- canonical: PropTypes.string,
- metadesc: PropTypes.string,
- keywords: PropTypes.string,
- social_share_summary: PropTypes.string,
- social_share_desc: PropTypes.string,
- social_share_image: PropTypes.string,
- noindex: PropTypes.bool
+ lang: PropTypes.string,
+ meta: PropTypes.arrayOf(PropTypes.object),
+ title: PropTypes.string.isRequired,
+ canonical: PropTypes.string,
+ metadesc: PropTypes.string,
+ keywords: PropTypes.string,
+ social_share_summary: PropTypes.string,
+ social_share_desc: PropTypes.string,
+ social_share_image: PropTypes.string,
+ noindex: PropTypes.bool,
};
export default SEO;
diff --git a/src/images/favicon-new.ico b/src/images/favicon-new.ico
deleted file mode 100644
index 75942d1..0000000
Binary files a/src/images/favicon-new.ico and /dev/null differ
diff --git a/src/images/favicon.ico b/src/images/favicon.ico
new file mode 100644
index 0000000..7d5754b
Binary files /dev/null and b/src/images/favicon.ico differ
diff --git a/src/images/favicons/android-chrome-192x192.png b/src/images/favicons/android-chrome-192x192.png
new file mode 100644
index 0000000..5ca5d97
Binary files /dev/null and b/src/images/favicons/android-chrome-192x192.png differ
diff --git a/src/images/favicons/android-chrome-512x512.png b/src/images/favicons/android-chrome-512x512.png
new file mode 100644
index 0000000..2f8fd14
Binary files /dev/null and b/src/images/favicons/android-chrome-512x512.png differ
diff --git a/src/images/favicons/apple-touch-icon.png b/src/images/favicons/apple-touch-icon.png
new file mode 100644
index 0000000..6cf8967
Binary files /dev/null and b/src/images/favicons/apple-touch-icon.png differ
diff --git a/src/images/favicons/favicon-16x16.png b/src/images/favicons/favicon-16x16.png
new file mode 100644
index 0000000..7276140
Binary files /dev/null and b/src/images/favicons/favicon-16x16.png differ
diff --git a/src/images/favicons/favicon-32x32.png b/src/images/favicons/favicon-32x32.png
new file mode 100644
index 0000000..da2dc7a
Binary files /dev/null and b/src/images/favicons/favicon-32x32.png differ
diff --git a/src/images/favicons/favicon-48x48.png b/src/images/favicons/favicon-48x48.png
new file mode 100644
index 0000000..ff8d270
Binary files /dev/null and b/src/images/favicons/favicon-48x48.png differ
diff --git a/src/images/favicons/favicon.ico b/src/images/favicons/favicon.ico
new file mode 100644
index 0000000..7d5754b
Binary files /dev/null and b/src/images/favicons/favicon.ico differ
diff --git a/src/images/favicons/safari-pinned-tab.svg b/src/images/favicons/safari-pinned-tab.svg
new file mode 100644
index 0000000..11f6887
--- /dev/null
+++ b/src/images/favicons/safari-pinned-tab.svg
@@ -0,0 +1,33 @@
+
+
+
diff --git a/src/images/favicons/site.webmanifest b/src/images/favicons/site.webmanifest
new file mode 100644
index 0000000..45dc8a2
--- /dev/null
+++ b/src/images/favicons/site.webmanifest
@@ -0,0 +1 @@
+{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
\ No newline at end of file