1import{o as e,t}from"./jsx-runtime-CN5JQsWP.js";import{n,r}from"./Footer-DivwLGsw.js";import{i,s as a}from"./surfaces-BL9pVhgc.js";import{t as o}from"./not-found-DG8jNpZX.js";import{t as s}from"./date-MHRJCjzS.js";import{t as c}from"./ReadingColumn-CoqPBhwf.js";import{t as l}from"./BackHome-BYPgPDWl.js";var u=t();function d({loaderData:e,error:t}){return t!==void 0||!e.post?[{title:`Not Found`}]:[{title:`${e.post.title} | Blog | Ryan X. Charles`}]}var f=e(function({loaderData:e}){let{post:t,earlier:d}=e;return t?(0,u.jsx)(a,{currentPage:null,children:(0,u.jsxs)(c,{"data-reading-column":`blog-post`,children:[(0,u.jsxs)(`article`,{className:`blog-surface mb-12`,children:[(0,u.jsx)(`h1`,{className:`blog-display text-4xl font-bold tracking-tight text-foreground sm:text-5xl`,children:t.title}),(0,u.jsxs)(`p`,{className:`blog-meta mt-4`,children:[(0,u.jsx)(`span`,{children:s(t.date)}),(0,u.jsx)(`span`,{children:` · `}),(0,u.jsx)(`span`,{className:`text-secondary-text`,children:t.author})]}),(0,u.jsx)(`div`,{className:`ryanxcharles-prose mt-8`,dangerouslySetInnerHTML:{__html:t.html}})]}),d.length>0?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`hr`,{className:`mx-auto my-4 max-w-[40px] border-border`}),(0,u.jsxs)(`div`,{className:`blog-surface my-4`,children:[(0,u.jsx)(`h2`,{className:`my-4 text-center text-xl font-bold text-foreground`,children:`Earlier Blog Posts`}),(0,u.jsx)(`div`,{className:`space-y-4 text-foreground`,children:d.map(e=>(0,u.jsxs)(r,{to:n(`/blog/:slug`,{slug:e.slug}),className:`${i} group block p-6`,children:[(0,u.jsx)(`h3`,{className:`blog-display text-xl font-bold tracking-tight text-foreground transition-colors group-hover:text-accent`,children:e.title}),(0,u.jsxs)(`p`,{className:`blog-meta mt-1`,children:[(0,u.jsx)(`span`,{children:s(e.date)}),(0,u.jsx)(`span`,{children:` · `}),(0,u.jsx)(`span`,{className:`text-secondary-text`,children:e.author})]})]},e.slug))})]})]}):null,(0,u.jsx)(l,{to:`/blog`,label:`Back to Blog`})]})}):(0,u.jsx)(o,{})});export{f as default,d as meta};
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.