PageSourceSearch

https://doctorpile.com/assets/blog-Cm2gONWZ.js

js doctorpile.com collected 2026-09-28 12:12:45 UTC 2,821 bytes, 1 lines download raw bytes

1import{u as c,j as e,L as m,C as d}from"./index-xiHmsbwW.js";import{u as x}from"./useQuery-DfpKWyh8.js";import{P as g,S as u}from"./Section-D-jqfQ8n.js";import{C as f}from"./card-D-F8_TGl.js";import{A as h}from"./arrow-right-DY5_ujix.js";import"./chevron-right-C8VU1lGd.js";async function p(){const r=await fetch("/blog-posts.json");if(!r.ok)throw new Error("Failed to load blog posts");return r.json()}function L(){const{i18n:r}=c(),a=(r.resolvedLanguage||r.language)==="mr",t=(s,n)=>a?n:s,{data:l,isLoading:o,error:i}=x({queryKey:["blog-posts"],queryFn:p,staleTime:1e3*60*60});return e.jsxs(e.Fragment,{children:[e.jsx(g,{eyebrow:t("Blog","ब्लॉग"),title:t("Insights, awareness & expert care","माहिती, जनजागृती आणि तज्ज्ञ काळजी"),subtitle:t("Articles by Dr. Kamthe's Piles Clinic on piles, fissure, fistula, Ayurvedic care and digestive wellness.","डॉ. कामठे पाईल्स क्लिनिकचे मुळव्याध, फिशर, फिस्तुला, आयुर्वेदिक काळजी आणि पचन आरोग्यावरील लेख.")}),e.jsxs(u,{children:[o&&e.jsx("p",{className:"text-center text-muted-foreground",children:t("Loading articles…","लेख लोड होत आहेत…")}),i&&e.jsx("p",{className:"text-center text-destructive",children:t("Failed to load articles.","लेख लोड करण्यात अयशस्वी.")}),l&&e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map(s=>e.jsx(m,{to:"/blog/$slug",params:{slug:s.slug},className:"group",children:e.jsxs(f,{className:"overflow-hidden h-full flex flex-col transition-all hover:shadow-elevated hover:-translate-y-1",children:[s.thumbnail&&e.jsx("div",{className:"aspect-video overflow-hidden bg-muted",children:e.jsx("img",{src:s.thumbnail,alt:s.title,loading:"lazy",className:"w-full h-full object-cover transition-transform group-hover:scale-105"})}),e.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(d,{className:"size-3.5"}),new Date(s.date).toLocaleDateString(a?"mr-IN":"en-IN",{day:"numeric",month:"long",year:"numeric"})]}),e.jsx("h2",{className:"mt-2 font-semibold text-lg leading-snug text-foreground group-hover:text-primary transition-colors line-clamp-3",dangerouslySetInnerHTML:{__html:s.title}}),s.excerpt&&e.jsx("p",{className:"mt-2 text-sm text-muted-foreground line-clamp-3 flex-1",children:s.excerpt}),e.jsxs("span",{className:"mt-4 inline-flex items-center gap-1 text-sm font-semibold text-primary",children:[t("Read more","अधिक वाचा")," ",e.jsx(h,{className:"size-3.5"})]})]})]})},s.id))})]})]})}export{L 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.