import { c as createComponent } from './astro-component_BaTxfI_2.mjs';
import 'piccolore';
import { h as renderComponent, r as renderTemplate, m as maybeRenderHead, f as addAttribute } from './server_CWPsUuvN.mjs';
import { $ as $$Layout } from './Layout_C5ObnTcG.mjs';
import { g as getCollection } from './_astro_content_DoK7oWIE.mjs';
const $$Index = createComponent(async ($$result, $$props, $$slots) => {
const posts = await getCollection("blog");
const sortedPosts = posts.sort(
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "บล็อก", "description": "บทความและความรู้ด้าน Digital Transformation, AI และการตลาดออนไลน์สำหรับ SMEs ไทย", "data-astro-cid-5tznm7mj": true }, { "default": async ($$result2) => renderTemplate` ${maybeRenderHead()}