1import{r as e}from"./utils-CiSUcVP6.js";import{W as t,zd as n}from"./messages-B3g2DnfL.js";import{n as r,t as i}from"./header-BpRpOKdN.js";import{n as a,r as o,t as s}from"./posts-BycgeGyp.js";import{c,r as l,t as u}from"./index-P0QamQeX.js";import{t as d}from"./mdx-components-KURzsGQ_.js";import{t as f}from"./markdown-content-CipTMoA2.js";var p=e();function m(){let{locale:e,post:m}=c.useLoaderData(),h=m.source===`local`?a(m.slug,e)?.default:null;return(0,p.jsxs)(`div`,{className:`bg-background text-foreground flex min-h-screen flex-col`,children:[(0,p.jsx)(i,{}),(0,p.jsx)(`main`,{className:`flex-1 px-6 py-12 md:px-8 md:py-16`,children:(0,p.jsxs)(`article`,{className:`mx-auto max-w-3xl`,children:[(0,p.jsx)(u,{items:[{label:n(),href:`/`},{label:t(),href:`/blog`},{label:m.title,href:`/blog/${m.slug}`}]}),(0,p.jsxs)(`header`,{className:`border-border mt-8 mb-6 border-b pb-6`,children:[(0,p.jsx)(`h1`,{className:`text-foreground text-3xl font-semibold tracking-tight md:text-4xl`,children:m.title}),m.description&&(0,p.jsx)(`p`,{className:`text-muted-foreground mt-3`,children:m.description}),(0,p.jsxs)(`div`,{className:`text-muted-foreground mt-4 flex items-center gap-4 text-sm`,children:[(0,p.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,p.jsx)(o,{className:`size-4`}),s(m.createdAt,e)]}),(m.authorName||m.authorImage)&&(0,p.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[m.authorImage&&(0,p.jsx)(`img`,{src:m.authorImage,alt:m.authorName||``,width:20,height:20,className:`size-5 rounded-full object-cover`}),m.authorName]})]})]}),m.image&&(0,p.jsx)(`img`,{src:m.image,alt:m.title,className:`border-border mb-8 w-full rounded-2xl border object-cover`}),h?(0,p.jsx)(`div`,{className:`text-foreground/90 text-[15px] leading-7`,children:(0,p.jsx)(l,{components:d,children:(0,p.jsx)(h,{})})}):(0,p.jsx)(f,{content:m.content||``})]})}),(0,p.jsx)(r,{})]})}export{m as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.