Change title and description tag contents

This commit is contained in:
Erica Marigold 2024-07-06 21:30:48 +05:30
parent dac1f75445
commit a1aea63099
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -85,19 +85,19 @@ const siteLang = siteConfig.lang.replace("_", "-");
<title>{pageTitle}</title> <title>{pageTitle}</title>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content={description || pageTitle}> <meta name="description" content={title ?? siteConfig.title}>
<meta name="author" content={profileConfig.name}> <meta name="author" content={profileConfig.name}>
<meta property="og:site_name" content={siteConfig.title}> <meta property="og:site_name" content={siteConfig.title}>
<meta property="og:url" content={Astro.url}> <meta property="og:url" content={Astro.url}>
<meta property="og:title" content={pageTitle}> <meta property="og:title" content={pageTitle}>
<meta property="og:description" content={description || pageTitle}> <meta property="og:description" content={description}>
<meta property="og:image" content={banner}> <meta property="og:image" content={banner}>
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta property="twitter:url" content={Astro.url}> <meta property="twitter:url" content={Astro.url}>
<meta name="twitter:title" content={pageTitle}> <meta name="twitter:title" content={pageTitle}>
<meta name="twitter:description" content={description || pageTitle}> <meta name="twitter:description" content={description ?? pageTitle}>
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />