%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/src/Components/Global/
Upload File :
Create Path :
Current File : /var/www/html/src/Components/Global/CustomHead.js

import Head from "next/head";

const CustomHead = (seo) => {
  return (
    <Head>
      <link rel="canonical" href={seo.data.og_url.replace("api.", "")} />
      <meta name="viewport" content="width=device-width, user-scalable=0" />

      <title>{seo.data.title}</title>
      <meta name="title" content={seo.data.title} />
      <meta
        name="description"
        content={seo.data.description ?? "ATV Dubrovnik"}
      />

      <meta property="og:type" content="website" />
      <meta property="og:url" content={seo.data.og_url.replace("api.", "")} />
      <meta property="og:title" content={seo.data.title} />
      <meta
        property="og:description"
        content={seo.data.description ?? "ATV Dubrovnik"}
      />
      <meta
        property="og:image"
        content={
          seo.data.og_image
            ? seo.data.og_image.url
            : "https://api.atvbuggy-dubrovnik.com/wp-content/uploads/2022/08/atv_dubrovnik.png"
        }
      />

      <meta property="twitter:card" content="summary_large_image" />
      <meta
        property="twitter:url"
        content={seo.data.og_url.replace("api.", "")}
      />
      <meta property="twitter:title" content={seo.data.title} />
      <meta
        property="twitter:description"
        content={seo.data.description ?? "ATV Dubrovnik"}
      />
      <meta
        property="twitter:image"
        content={
          seo.data.og_image
            ? seo.data.og_image.url
            : "https://api.atvbuggy-dubrovnik.com/wp-content/uploads/2022/08/atv_dubrovnik.png"
        }
      />

      <script src="https://www.googletagmanager.com/gtag/js?id=G-YP99VQ2N62" />

      <script
        dangerouslySetInnerHTML={{
          __html: `window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-YP99VQ2N62');`,
        }}
      />
    </Head>
  );
};

export default CustomHead;

Zerion Mini Shell 1.0