import { c as createComponent } from './astro-component_Y0jc7Trv.mjs'; import 'piccolore'; import { h as renderComponent, r as renderTemplate, m as maybeRenderHead, f as addAttribute } from './server_CW1mBpZH.mjs'; import { $ as $$Layout } from './Layout_DdK69uya.mjs'; import { g as getCollection } from './_astro_content_Beg-Bg2V.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()}
${sortedPosts.map((post) => renderTemplate`

${post.data.title}

${post.data.description}

`)}
` })}`; }, "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/pages/blog/index.astro", void 0); const $$file = "/Users/kunthawatgreethong/Gitea/moreminimore-new/src/pages/blog/index.astro"; const $$url = "/blog"; const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ __proto__: null, default: $$Index, file: $$file, url: $$url }, Symbol.toStringTag, { value: 'Module' })); const page = () => _page; export { page };