import{_ as m,o as n,c as r,r as i,a as t,b as l,w as c,l as p,K as f,L as g,f as h,E as d,A as o,H as x}from"./chunk-B6X1IyzH.js";import{_ as b}from"./chunk-DvJ0CJYz.js";import{_ as k}from"./chunk-4EZ9MtAH.js";import{C as y}from"./chunk-BhivZ3KV.js";const $={},C={class:"bg-pink-500 text-white !mt-0 italic text-sm text-center"};function w(e,s){return n(),r("figcaption",C,[i(e.$slots,"default")])}const B=m($,[["render",w]]),P=["alt","src"],H={__name:"Picture",props:{title:{type:String,required:!1},image:{type:String,default:null}},setup(e){return(s,a)=>(n(),r("figure",null,[t("img",{loading:"lazy",alt:e.title,src:e.image},null,8,P),l(B,null,{default:c(()=>[i(s.$slots,"default")]),_:3})]))}},S={class:"container max-w-screen-md"},v=t("a",{class:"inline-block no-underline text-sm hover:bg-pink-600 bg-pink-500 px-3 py-1 text-white transition select-none z-20",href:"/blog"},"< back",-1),z={class:"text-xl lg:text-3xl"},A={key:0,class:"text-xs block mt-2"},E={class:"space-y-4"},N=t("a",{class:"inline-block -translate-y-0.5 no-underline text-sm hover:bg-pink-600 bg-pink-500 px-3 py-1 text-white transition select-none z-20",href:"/blog"},"< back",-1),K={__name:"BlogPost",setup(e){p(()=>{document.querySelectorAll(".blog-post article a").forEach(function(u){u.setAttribute("rel","external")})});const s=f(),a=g(s.urlParsed.pathname);return(_,u)=>(n(),h(b,{class:"blog-post"},{default:c(()=>[l(k),t("div",S,[v,l(y,{class:"mb-4"},{default:c(()=>[t("header",null,[t("h1",z,d(o(a).title),1),o(a).date?(n(),r("time",A,d(o(a).date),1)):x("",!0)])]),_:1}),t("article",null,[t("main",E,[i(_.$slots,"default")])]),N])]),_:3}))}};export{B as C,K as _,H as a};