1import{_ as h}from"./BfNQs6Go.js";import{_ as b}from"./CW6TSjOm.js";import{d as v,u as y,c as k,b as $,e as w,s as o,f as d,g as c,h as s,i as t,t as a,F as B,r as M,n as r,o as i,j as G,k as L,_ as C}from"./CWXzWxAq.js";import{u as E,b as H}from"./V6PXsQGD.js";import{g as N,a as O}from"./Cx-PPbXK.js";const P={class:"mx-auto max-w-3xl px-4 py-8"},S={class:"mb-6"},z={class:"text-xs font-semibold uppercase tracking-wide text-brand"},D={class:"mt-2 text-3xl font-extrabold sm:text-4xl"},F={class:"mt-3 text-muted"},T={class:"mt-2 text-xs text-muted"},U={class:"mt-12 border-t pt-8"},V={class:"grid gap-3 sm:grid-cols-2"},j={class:"text-sm font-semibold"},Q=v({__name:"[slug]",setup(A){const m=y(),p=r(()=>String(m.params.slug)),e=r(()=>N(p.value));if(!e.value)throw k({statusCode:404,statusMessage:"Guide not found",fatal:!0});const _=r(()=>O.filter(u=>u.slug!==e.value.slug).slice(0,4));return $({title:()=>e.value.title,description:()=>e.value.description,ogTitle:()=>e.value.title,ogDescription:()=>e.value.description,ogType:"article",ogUrl:()=>`${o.url}/guides/${e.value.slug}`}),w(()=>({link:[{rel:"canonical",href:`${o.url}/guides/${e.value.slug}`}]})),E([H([{name:"Home",url:"/"},{name:"Guides",url:"/guides"},{name:e.value.title,url:`/guides/${e.value.slug}`}]),{"@context":"https://schema.org","@type":"Article",headline:e.value.title,description:e.value.description,datePublished:e.value.updated,dateModified:e.value.updated,author:{"@type":"Organization",name:o.name},publisher:{"@type":"Organization",name:o.name},mainEntityOfPage:`${o.url}/guides/${e.value.slug}`}]),(u,l)=>{const g=h,x=b,f=C;return i(),d("article",P,[c(g,{items:[{name:"Home",href:"/"},{name:"Guides",href:"/guides"},{name:s(e).category}]},null,8,["items"]),t("header",S,[t("span",z,a(s(e).category),1),t("h1",D,a(s(e).title),1),t("p",F,a(s(e).description),1),t("p",T,a(s(e).readMinutes)+" min read · Updated "+a(s(e).updated),1)]),c(x,{markdown:s(e).body},null,8,["markdown"]),t("section",U,[l[0]||(l[0]=t("h2",{class:"mb-4 text-xl font-bold"},"More guides",-1)),t("div",V,[(i(!0),d(B,null,M(s(_),n=>(i(),G(f,{key:n.slug,to:`/guides/${n.slug}`,class:"rounded-xl border bg-surface p-4 transition hover:border-brand/60"},{default:L(()=>[t("span",j,a(n.title),1)]),_:2},1032,["to"]))),128))])])])}}});export{Q as default};
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.