diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 11b516a..629effc 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,7 +6,7 @@ interface Props { description?: string; } -const { title = 'MoreminiMore - AI Automation', description = 'เพิ่มยอดขายด้วย AI & Automation' } = Astro.props; +const { title = 'MoreminiMore - ที่ปรึกษาองค์กร AI', description = 'เพิ่มยอดขายด้วย AI & Technology' } = Astro.props; --- @@ -75,22 +75,18 @@ const { title = 'MoreminiMore - AI Automation', description = 'เพิ่ม
AI Automation เพิ่มยอดขายด้วยข้อมูล
+ที่ปรึกษาองค์กร AI เพิ่มยอดขายด้วยข้อมูล
diff --git a/src/pages/blog/[slug].astro b/src/pages/blog/[slug].astro index 112cf5c..0a114e4 100644 --- a/src/pages/blog/[slug].astro +++ b/src/pages/blog/[slug].astro @@ -5,7 +5,7 @@ import { getCollection } from 'astro:content'; export async function getStaticPaths() { const posts = await getCollection('blog'); return posts.map((post) => ({ - params: { slug: post.id }, + params: { slug: post.id.replace('.md', '') }, props: { post }, })); } diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 5901f3d..439e4c2 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -26,14 +26,14 @@ posts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); ))}{post.data.description}