1import{_ as D}from"./yTwdxDd0.js";import{_ as H}from"./B9fuYYdf.js";import{_ as I}from"./DhbMjqWk.js";import{_ as N}from"./C85lGVcU.js";import{u as P,e as M,c as i,b as m,a as e,w as c,t as n,g as s,i as f,F as v,r as _,h as y,o as a,d as g,n as C,j as x}from"./AFdqBxUx.js";import{u as G}from"./Cj6qo7GG.js";import{u as R}from"./BmB05AO_.js";import"./DbQox7K2.js";import"./CJ2AlZVp.js";import"./BJ2ClxiI.js";import"./CUGmGTF1.js";const E={id:"main",role:"main",class:"font-sans text-gray-900 antialiased min-h-screen bg-gray-50 flex flex-col"},S={class:"relative bg-gray-900 py-32 px-6 text-center"},T={class:"relative z-10 max-w-4xl mx-auto"},V={class:"text-sm text-gray-400 mb-4","aria-label":"Fil d'Ariane"},O={class:"text-orange-400"},J={class:"text-4xl md:text-5xl font-extrabold text-white mb-4"},Q={class:"text-xl text-gray-300"},W={key:0,class:"text-gray-400 mt-4"},K={class:"container mx-auto px-6 py-12 flex-grow"},U={key:0,class:"text-center py-20"},X={key:1,class:"text-center py-20"},Y={class:"max-w-3xl mx-auto mb-12 text-center"},Z={class:"text-gray-600 leading-relaxed"},ee={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-8"},te={class:"h-56 bg-gray-200 relative overflow-hidden group"},se=["src","alt"],oe={class:"p-8 flex-grow flex flex-col"},re={class:"text-xs font-bold text-orange-700 uppercase tracking-wider mb-2"},ae={class:"text-xl font-bold mb-3 text-gray-900 leading-tight"},ne={class:"text-gray-600 mb-6 line-clamp-3 flex-grow text-sm"},ie={key:0,class:"mt-16 flex justify-center items-center gap-2","aria-label":"Pagination"},le={class:"mt-16 text-center"},ue={class:"flex flex-wrap justify-center gap-3"},we={__name:"[slug]",async setup(ce){let h,w;const k=P(),r=x(()=>k.params.slug),d=x(()=>Math.max(1,parseInt(k.query.page)||1)),{data:l,pending:$,error:z}=([h,w]=M(()=>G(()=>`/api/articles/by-category/${r.value}`,{query:{page:d,limit:12},watch:[d,r]},"$lRsL_eELzQ")),h=await h,w(),h),p={types:{label:"Types de cornemuses",description:"Great Highland Bagpipe, uilleann pipes, biniou, gaita : découvrez tous les types de cornemuses du monde.",intro:"Il n'existe pas une cornemuse, mais des dizaines de variantes à travers le monde. De la puissante Great Highland Bagpipe écossaise aux subtiles uilleann pipes irlandaises en passant par le biniou breton, explorez les caractéristiques uniques de chaque instrument."},traditions:{label:"Traditions",description:"La cornemuse au coeur des traditions musicales : Ãcosse, Irlande, Bretagne et au-delà .",intro:"La cornemuse est intimement liée à l'identité culturelle de dizaines de peuples. Des Highlands écossais aux fêtes bretonnes, découvrez comment cet instrument a façonné des siècles de traditions musicales à travers le monde."},festivals:{label:"Festivals",description:"Festivals de cornemuse en France et en Europe : programmes, artistes et reportages.",intro:"Des Highland Games écossais au Festival Interceltique de Lorient, la cornemuse est au coeur de nombreux événements. Retrouvez nos reportages, programmes et interviews d'artistes."},apprentissage:{label:"Apprentissage",description:"Guides, méthodes et conseils pour apprendre la cornemuse de zéro.",intro:"Apprendre la cornemuse est un voyage passionnant. Nos guides progressifs vous accompagnent du premier souffle sur le practice chanter jusqu'à vos premières performances en pipe band."},materiel:{label:"Matériel",description:"Guides d'achat, comparatifs et conseils pour choisir votre cornemuse.",intro:"Choisir le bon matériel est crucial pour progresser. Découvrez nos guides d'achat honnêtes, nos comparatifs de fabricants et nos conseils pour entretenir votre instrument."},culture:{label:"Culture",description:"Histoire, légendes et patrimoine culturel de la cornemuse à travers les âges.",intro:"La cornemuse est intimement liée à l'histoire de l'humanité. Des origines antiques aux légendes médiévales, plongez dans le patrimoine culturel fascinant de cet instrument millénaire."}},b=x(()=>p[r.value]?.label||r.value),B=x(()=>p[r.value]?.description||""),j=x(()=>p[r.value]?.intro||""),q=x(()=>Object.entries(p).map(([L,t])=>({slug:L,label:t.label})));return R(()=>({title:`${b.value} - Articles sur la cornemuse | LaCornemuse`,meta:[{name:"description",content:p[r.value]?.description||`Articles sur ${r.value} - LaCornemuse`},{property:"og:title",content:`${b.value} - LaCornemuse`},{property:"og:description",content:p[r.value]?.description||""},{property:"og:type",content:"website"},{property:"og:url",content:`https://cornemuses-blanc.fr/categorie/${r.value}`}],link:[{rel:"canonical",href:`https://cornemuses-blanc.fr/categorie/${r.value}`}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:`${b.value} - LaCornemuse`,description:p[r.value]?.description||"",url:`https://cornemuses-blanc.fr/categorie/${r.value}`,isPartOf:{"@type":"WebSite",name:"LaCornemuse",url:"https://cornemuses-blanc.fr"},breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Accueil",item:"https://cornemuses-blanc.fr"},{"@type":"ListItem",position:2,name:"Blog",item:"https://cornemuses-blanc.fr/blog"},{"@type":"ListItem",position:3,name:b.value,item:`https://cornemuses-blanc.fr/categorie/${r.value}`}]}})}]})),(L,t)=>{const A=D,u=H,F=I;return a(),i("main",E,[m(A),e("div",S,[t[4]||(t[4]=e("div",{class:"absolute inset-0 overflow-hidden"},[e("img",{src:N,class:"w-full h-full object-cover opacity-20 blur-sm",alt:""}),e("div",{class:"absolute inset-0 bg-gradient-to-b from-gray-900/80 to-gray-900"})],-1)),e("div",T,[e("nav",V,[m(u,{to:"/",class:"hover:text-white transition"},{default:c(()=>[...t[0]||(t[0]=[g("Accueil",-1)])]),_:1}),t[2]||(t[2]=e("span",{class:"mx-2"},"/",-1)),m(u,{to:"/blog",class:"hover:text-white transition"},{default:c(()=>[...t[1]||(t[1]=[g("Blog",-1)])]),_:1}),t[3]||(t[3]=e("span",{class:"mx-2"},"/",-1)),e("span",O,n(s(b)),1)]),e("h1",J,n(s(b)),1),e("p",Q,n(s(B)),1),s(l)?(a(),i("p",W,n(s(l).total)+" article"+n(s(l).total>1?"s":""),1)):f("",!0)])]),e("div",K,[s($)?(a(),i("div",U,[...t[5]||(t[5]=[e("div",{class:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-orange-500 mx-auto"},null,-1)])])):s(z)||!s(l)||s(l).articles.length===0?(a(),i("div",X,[t[7]||(t[7]=e("h2",{class:"text-2xl font-bold text-gray-400 mb-4"},"Aucun article dans cette catégorie",-1)),m(u,{to:"/blog",class:"text-orange-700 font-bold hover:underline"},{default:c(()=>[...t[6]||(t[6]=[g("Retour au blog",-1)])]),_:1})])):(a(),i(v,{key:2},[e("div",Y,[e("p",Z,n(s(j)),1)]),e("div",ee,[(a(!0),i(v,null,_(s(l).articles,o=>(a(),i("article",{key:o.id,class:"bg-white rounded-2xl overflow-hidden shadow-lg hover:shadow-2xl transition duration-300 transform hover:-translate-y-2 flex flex-col h-full"},[e("div",te,[e("img",{src:o.feature_image||"/images/player.png",alt:o.titre,class:"w-full h-full object-cover transition duration-500 group-hover:scale-110",loading:"lazy"},null,8,se),t[8]||(t[8]=e("div",{class:"absolute inset-0 bg-black/20 group-hover:bg-black/0 transition"},null,-1))]),e("div",oe,[e("div",re,n(o.date_publication?new Date(o.date_publication).toLocaleDateString("fr-FR",{year:"numeric",month:"long",day:"numeric"}):""),1),e("h3",ae,[m(u,{to:"/article/"+o.slug,class:"hover:text-orange-700 transition"},{default:c(()=>[g(n(o.titre),1)]),_:2},1032,["to"])]),e("p",ne,n(o.meta_description),1),m(u,{to:"/article/"+o.slug,class:"text-orange-700 font-bold hover:text-orange-900 flex items-center group mt-auto"},{default:c(()=>[...t[9]||(t[9]=[g(" Lire l'article ",-1),e("svg",{class:"w-4 h-4 ml-2 transform group-hover:translate-x-1 transition",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1)])]),_:1},8,["to"])])]))),128))]),s(l).totalPages>1?(a(),i("nav",ie,[s(d)>1?(a(),y(u,{key:0,to:{path:`/categorie/${s(r)}`,query:s(d)-1===1?{}:{page:s(d)-1}},class:"px-4 py-2 rounded-lg bg-white border border-gray-300 text-gray-700 hover:bg-orange-50 hover:border-orange-300 transition font-medium"},{default:c(()=>[...t[10]||(t[10]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),_:1},8,["to"])):f("",!0),(a(!0),i(v,null,_(s(l).totalPages,o=>(a(),y(u,{key:o,to:{path:`/categorie/${s(r)}`,query:o===1?{}:{page:o}},class:C(["px-4 py-2 rounded-lg font-bold transition",o===s(d)?"bg-orange-500 text-white shadow-lg":"bg-white border border-gray-300 text-gray-700 hover:bg-orange-50"])},{default:c(()=>[g(n(o),1)]),_:2},1032,["to","class"]))),128)),s(d)<s(l).totalPages?(a(),y(u,{key:1,to:{path:`/categorie/${s(r)}`,query:{page:s(d)+1}},class:"px-4 py-2 rounded-lg bg-white border border-gray-300 text-gray-700 hover:bg-orange-50 hover:border-orange-300 transition font-medium"},{default:c(()=>[...t[11]||(t[11]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),_:1},8,["to"])):f("",!0)])):f("",!0),e("div",le,[t[12]||(t[12]=e("h2",{class:"text-lg font-bold text-gray-800 mb
1-4"},"Autres catégories",-1)),e("div",ue,[(a(!0),i(v,null,_(s(q),o=>(a(),y(u,{key:o.slug,to:`/categorie/${o.slug}`,class:C(["px-4 py-2 rounded-full text-sm font-semibold transition",o.slug===s(r)?"bg-orange-500 text-white":"bg-white border border-gray-200 text-gray-700 hover:border-orange-300 hover:text-orange-700"])},{default:c(()=>[g(n(o.label),1)]),_:2},1032,["to","class"]))),128))])])],64))]),m(F)])}}};export{we 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.