import { c as createComponent, m as maybeRenderHead, d as addAttribute, a as renderTemplate, b as createAstro, r as renderComponent } from '../chunks/astro/server_D-JZF3a4.mjs'; import 'piccolore'; import { g as getCollection } from '../chunks/_astro_content_C5hvN5fw.mjs'; import 'clsx'; import { $ as $$BaseLayout } from '../chunks/BaseLayout_CQrO8n43.mjs'; export { renderers } from '../renderers.mjs'; const $$Astro = createAstro(); const $$BlogCard = createComponent(($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$BlogCard; const { post } = Astro2.props; const { title, excerpt, date, author, category, categories, image, featuredImage } = post.data; const postCategory = category || (Array.isArray(categories) ? categories[0] : "\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B"); const postImage = image || featuredImage || "/images/2021/03/ppr-pipe_000C.jpg"; return renderTemplate`${maybeRenderHead()} ${postCategory} ${new Date(date).toLocaleDateString("th-TH", { year: "numeric", month: "long", day: "numeric" })} ${title} ${excerpt && renderTemplate` ${excerpt} `} อ่านต่อ `; }, "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/components/BlogCard.astro", void 0); const metadata = { title: "\u0E1A\u0E17\u0E04\u0E27\u0E32\u0E21\u0E04\u0E27\u0E32\u0E21\u0E23\u0E39\u0E49", description: "\u0E1A\u0E17\u0E04\u0E27\u0E32\u0E21\u0E04\u0E27\u0E32\u0E21\u0E23\u0E39\u0E49\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E27\u0E31\u0E2A\u0E14\u0E38\u0E17\u0E48\u0E2D \u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E23\u0E30\u0E1A\u0E1A\u0E17\u0E48\u0E2D \u0E41\u0E25\u0E30\u0E40\u0E17\u0E04\u0E19\u0E34\u0E04\u0E01\u0E32\u0E23\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07" }; const prerender = true; const $$Index = createComponent(async ($$result, $$props, $$slots) => { const posts = await getCollection("blog"); return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, { "title": metadata.title, "description": metadata.description }, { "default": async ($$result2) => renderTemplate` ${maybeRenderHead()} บทความความรู้ บทความความรู้เกี่ยวกับวัสดุท่อ อุปกรณ์ระบบท่อ และเทคนิคการติดตั้ง ${posts.map((post) => renderTemplate`${renderComponent($$result2, "BlogCard", $$BlogCard, { "post": post })}`)} ` })}`; }, "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/blog/index.astro", void 0); const $$file = "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/blog/index.astro"; const $$url = "/blog"; const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ __proto__: null, default: $$Index, file: $$file, metadata, prerender, url: $$url }, Symbol.toStringTag, { value: 'Module' })); const page = () => _page; export { page };
${excerpt}
บทความความรู้เกี่ยวกับวัสดุท่อ อุปกรณ์ระบบท่อ และเทคนิคการติดตั้ง