1import{e as h,u,r as b,j as e}from"./react-vendor-D653VjAu.js";import{P as g}from"./blog-posts-DPEvteOt.js";function N(){const{slug:c}=h(),o=u(),t=g.find(n=>n.slug===c);if(b.useEffect(()=>{if(!t){o("/");return}document.title=t.title;const n=(i,x,p)=>{let r=document.head.querySelector(i);if(!r){r=document.createElement("meta");const[,l,a]=i.match(/\[(.+?)="(.+?)"\]/)||[];l&&a&&r.setAttribute(l,a),document.head.appendChild(r)}r.setAttribute(x,p)};n('meta[name="description"]',"content",t.description),n('meta[property="og:title"]',"content",t.title),n('meta[property="og:description"]',"content",t.description),n('meta[property="og:type"]',"content","article"),n('meta[name="twitter:title"]',"content",t.title),n('meta[name="twitter:description"]',"content",t.description);const m=`https://www.ihatepdf.cv/blog/${t.slug}`;let s=document.head.querySelector('link[rel="canonical"]');s||(s=document.createElement("link"),s.setAttribute("rel","canonical"),document.head.appendChild(s)),s.setAttribute("href",m)},[t]),!t)return null;const d=new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return e.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-12 text-zinc-300",children:[e.jsxs("nav",{className:"text-xs text-zinc-600 mb-8 flex items-center gap-2",children:[e.jsx("a",{href:"/",className:"hover:text-zinc-400",children:"Home"}),e.jsx("span",{children:"âº"}),e.jsx("a",{href:"/blog",className:"hover:text-zinc-400",children:"Blog"}),e.jsx("span",{children:"âº"}),e.jsx("span",{className:"text-zinc-400",children:t.title})]}),e.jsxs("div",{className:"flex items-center gap-3 mb-4 text-xs text-zinc-600",children:[e.jsx("span",{children:d}),e.jsx("span",{className:"bg-zinc-800 border border-zinc-700 px-2 py-0.5 rounded-full",children:t.readTime})]}),e.jsx("h1",{className:"text-3xl font-bold text-white mb-4 leading-tight",children:t.title}),e.jsx("p",{className:"text-zinc-400 text-lg mb-7",children:t.description}),t.snippet&&e.jsxs("div",{className:"mb-9 rounded-xl border border-blue-900/60 border-l-[3px] border-l-blue-500 bg-blue-950/30 px-5 py-4",children:[e.jsx("p",{className:"text-[0.72rem] font-bold uppercase tracking-wider text-blue-400 mb-1.5",children:"Quick answer"}),e.jsx("p",{className:"text-blue-50/90 leading-relaxed m-0",children:t.snippet})]}),e.jsx("div",{className:"prose-blog",dangerouslySetInnerHTML:{__html:t.content}}),e.jsxs("div",{className:"mt-12 bg-zinc-900 border border-zinc-800 rounded-xl p-6 text-center",children:[e.jsx("h3",{className:"text-white font-bold mb-2",children:"Try it free â no watermark, no sign-up"}),e.jsx("p",{className:"text-zinc-500 text-sm mb-4",children:"16+ free PDF tools. Files never leave your device."}),e.jsx("a",{href:"/",className:"inline-block bg-blue-600 hover:bg-blue-500 text-white font-semibold text-sm px-6 py-2.5 rounded-lg transition-colors",children:"Open ihatepdf â"})]}),e.jsxs("div",{className:"mt-8 flex justify-between items-center",children:[e.jsx("a",{href:"/blog",className:"text-zinc-600 hover:text-zinc-400 text-sm",children:"â All articles"}),e.jsx("a",{href:"/",className:"text-zinc-600 hover:text-zinc-400 text-sm bg-zinc-900 border border-zinc-800 px-3 py-1.5 rounded",children:"All PDF tools"})]})]})}export{N 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.