import { c as createComponent, r as renderComponent, a as renderTemplate, b as createAstro, m as maybeRenderHead, d as addAttribute } from '../../chunks/astro/server_D-JZF3a4.mjs'; import 'piccolore'; import { r as renderEntry, g as getCollection } from '../../chunks/_astro_content_C5hvN5fw.mjs'; import { $ as $$BaseLayout } from '../../chunks/BaseLayout_CQrO8n43.mjs'; export { renderers } from '../../renderers.mjs'; const $$Astro = createAstro(); async function getStaticPaths() { const posts = await getCollection("blog"); return posts.map((post) => ({ params: { slug: post.id }, props: { post } })); } const $$slug = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$slug; const { post } = Astro2.props; const { Content } = await renderEntry(post); const { title, 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`${renderComponent($$result, "BaseLayout", $$BaseLayout, { "title": title, "description": post.data.excerpt }, { "default": async ($$result2) => renderTemplate` ${maybeRenderHead()}
${postCategory} ${author}

${title}

${renderComponent($$result2, "Content", Content, {})}
` })}`; }, "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/blog/[slug].astro", void 0); const $$file = "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/blog/[slug].astro"; const $$url = "/blog/[slug]"; const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ __proto__: null, default: $$slug, file: $$file, getStaticPaths, url: $$url }, Symbol.toStringTag, { value: 'Module' })); const page = () => _page; export { page };