diff --git a/src/Layout.tsx b/src/Layout.tsx index d58a2ff38b5..e27d90a76b9 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -10,7 +10,7 @@ import Navigation from 'components/Navigation' import Footer from 'components/Footer' import { StarSymbols } from 'components/icons/StarIcon' -const ROOT_URL = process.env.GATSBY_ROOT_URL || 'https://chareads.com' +const ROOT_URL = process.env.GATSBY_ROOT_URL const StyledLayout = styled.div` display: flex; @@ -55,7 +55,7 @@ const Layout: React.FC = ({ } `) - const url = `${ROOT_URL}${location.pathname}` + const url = `//${ROOT_URL}${location.pathname}` const title = `${customTitle ? `${customTitle} | ` : ''}Chareads` const description = customDescription || @@ -68,7 +68,6 @@ const Layout: React.FC = ({ fit: 'cover', }) }` - const favicon = `${ROOT_URL}/favicon.png` return ( <> @@ -76,7 +75,7 @@ const Layout: React.FC = ({ {title} - +