--- import Layout from '../../layouts/Layout.astro'; import { getCollection } from 'astro:content'; export async function getStaticPaths() { const posts = await getCollection('blog'); return posts.map(post => ({ params: { slug: post.id }, props: { post }, })); } const allPosts = await getCollection('blog'); const sortedPosts = allPosts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); const categories = [...new Set(allPosts.map(post => post.data.category))]; const tags = [...new Set(allPosts.flatMap(post => post.data.tags))]; // Map blog slugs to feature images const featureImages: Record = { '5-ways-ai-increase-sales': '/images/blog/ai-sales-growth.jpg', 'ai-content-google-love': '/images/blog/ai-content-seo.jpg', 'ai-for-sme-thailand': '/images/blog/ai-sme-thailand.jpg', 'back-office-automation': '/images/blog/office-automation.jpg', 'chatbot-business-case-study': '/images/blog/chatbot-business.jpg', 'data-driven-marketing': '/images/blog/data-marketing.jpg', 'digital-transformation-guide': '/images/blog/digital-transformation.jpg', 'marketing-automation-guide': '/images/blog/marketing-automation.jpg', 'seo-2026-business-guide': '/images/blog/seo-guide.jpg', 'website-2026-must-have': '/images/blog/website-2026.jpg', }; const formatDate = (date: Date) => { return date.toLocaleDateString('th-TH', { year: 'numeric', month: 'long', day: 'numeric' }); }; ---

บล็อก & ความรู้

ความรู้เกี่ยวกับ AI, การตลาดดิจิทัล และการเปลี่ยนแปลงทางธุรกิจสำหรับ SMEs ไทย

{categories.map(category => ( ))}
{sortedPosts.map((post, index) => ( ))}

หัวข้อที่น่าสนใจ

{tags.map(tag => ( #{tag} ))}

พร้อมเริ่มต้น Digital Transformation แล้วหรือยัง?

ปรึกษาผู้เชี่ยวชาญของเราฟรี เราพร้อมช่วยคุณวางกลยุทธ์ที่เหมาะกับธุรกิจ