Add SEO+GEO foundation + blog auto JSON-LD + robots fix
This commit is contained in:
@@ -9,7 +9,25 @@ const {
|
||||
title = 'MoreminiMore',
|
||||
description = 'MoreminiMore ช่วย SME ดูข้อมูลจริงก่อนตัดสินใจทำเว็บ การตลาด AI หรือระบบอัตโนมัติ',
|
||||
image = '/images/logos/logo-long-black.png',
|
||||
robotsMeta = 'index, follow',
|
||||
} = Astro.props;
|
||||
|
||||
const siteUrl = new URL('/', Astro.site).toString();
|
||||
const logoUrl = new URL('/images/logos/logo-long-black.png', Astro.site).toString();
|
||||
const ogImageUrl = new URL(image, Astro.site).toString();
|
||||
|
||||
const organizationJsonLd = JSON.stringify({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
name: 'MoreminiMore',
|
||||
url: siteUrl,
|
||||
logo: logoUrl,
|
||||
description: description,
|
||||
sameAs: [
|
||||
'https://www.facebook.com/moreminimore',
|
||||
'https://www.linkedin.com/company/moreminimore',
|
||||
],
|
||||
});
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@@ -18,6 +36,7 @@ const {
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="robots" content={robotsMeta} />
|
||||
<meta name="theme-color" content="#f8f5ea" />
|
||||
<title>{title}</title>
|
||||
|
||||
@@ -30,7 +49,7 @@ const {
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:url" content={canonicalURL} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content={new URL(image, Astro.site).toString()} />
|
||||
<meta property="og:image" content={ogImageUrl} />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
<meta property="og:locale" content="th_TH" />
|
||||
@@ -39,7 +58,11 @@ const {
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<meta name="twitter:image" content={new URL(image, Astro.site).toString()} />
|
||||
<meta name="twitter:image" content={ogImageUrl} />
|
||||
|
||||
<!-- Organization JSON-LD -->
|
||||
<script type="application/ld+json" set:html={organizationJsonLd}>
|
||||
</script>
|
||||
|
||||
<!-- Favicons -->
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
|
||||
Reference in New Issue
Block a user