PageSourceSearch

https://cornemuses-blanc.fr/_nuxt/DlDaK_58.js

js cornemuses-blanc.fr collected 2026-10-04 03:32:36 UTC 8,902 bytes, 1 lines download raw bytes

1import{_ as B}from"./yTwdxDd0.js";import{_ as w}from"./B9fuYYdf.js";import{u as k}from"./Cj6qo7GG.js";import{e as L,g as r,o as c,c as m,a as t,F as N,r as F,t as p,b as i,w as u,d as l,i as b,u as H,j as v}from"./AFdqBxUx.js";import{_ as R}from"./DhbMjqWk.js";import{u as S}from"./BmB05AO_.js";import"./DbQox7K2.js";import"./CJ2AlZVp.js";import"./BJ2ClxiI.js";import"./CUGmGTF1.js";const z={key:0,class:"container mx-auto px-6 pb-16 max-w-5xl"},E={class:"grid md:grid-cols-3 gap-8"},M={class:"h-48 bg-gray-200 relative overflow-hidden group"},O=["src","alt"],T={class:"p-6 flex-grow flex flex-col"},D={class:"text-xs font-bold text-orange-700 uppercase tracking-wider mb-2"},I={class:"text-lg font-bold mb-2 text-gray-900 leading-tight"},P={class:"text-gray-600 text-sm mb-4 line-clamp-2 flex-grow"},V={__name:"RelatedArticles",props:{slug:{type:String,required:!0}},async setup(h){let d,_;const g=h,{data:n}=([d,_]=L(()=>k(()=>`/api/articles/related/${g.slug}`,{watch:[()=>g.slug]},"$ONLqXqibeX")),d=await d,_(),d);return(y,a)=>{const f=w;return r(n)&&r(n).length?(c(),m("section",z,[a[3]||(a[3]=t("h2",{class:"text-3xl font-extrabold text-gray-900 mb-8 text-center"},"Articles Similaires",-1)),t("div",E,[(c(!0),m(N,null,F(r(n),s=>(c(),m("article",{key:s.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"},[t("div",M,[t("img",{src:s.feature_image||"/images/hero.png",alt:s.titre,class:"w-full h-full object-cover transition duration-500 group-hover:scale-110",loading:"lazy",onError:a[0]||(a[0]=e=>e.target.src="/images/hero.png")},null,40,O),a[1]||(a[1]=t("div",{class:"absolute inset-0 bg-black/20 group-hover:bg-black/0 transition"},null,-1))]),t("div",T,[t("div",D,p(s.date_publication?new Date(s.date_publication).toLocaleDateString("fr-FR",{year:"numeric",month:"long",day:"numeric"}):""),1),t("h3",I,[i(f,{to:"/article/"+s.slug,class:"hover:text-orange-700 transition"},{default:u(()=>[l(p(s.titre),1)]),_:2},1032,["to"])]),t("p",P,p(s.meta_description),1),i(f,{to:"/article/"+s.slug,class:"text-orange-700 font-bold text-sm hover:text-orange-800 flex items-center group mt-auto"},{default:u(()=>[...a[2]||(a[2]=[l(" Lire l'article ",-1),t("svg",{class:"w-4 h-4 ml-2 transform group-hover:translate-x-1 transition",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1)])]),_:1},8,["to"])])]))),128))])])):b("",!0)}}},q={id:"main",role:"main",class:"font-sans text-gray-900 antialiased min-h-screen bg-gray-50 flex flex-col"},J={key:0,class:"flex-grow flex items-center justify-center"},U={key:1,class:"flex-grow container mx-auto px-6 py-32 text-center"},W={key:2,class:"flex-grow"},X={class:"relative h-[50vh] min-h-[400px]"},K=["src","alt"],G={class:"absolute inset-0 flex items-center justify-center"},Q={class:"text-center px-6 max-w-4xl mx-auto"},Y={class:"mb-6 text-sm text-gray-300","aria-label":"Fil d'Ariane"},Z={class:"flex items-center justify-center gap-2 flex-wrap"},tt={key:0},et={key:1},ot={class:"text-orange-400 truncate max-w-[200px]"},nt={key:0,class:"inline-block bg-orange-600 text-white px-3 py-1 rounded-full text-sm font-bold mb-4 uppercase tracking-wider"},rt={class:"text-4xl md:text-5xl font-extrabold text-white mb-4 leading-tight"},st={class:"text-gray-300 text-sm md:text-base font-medium"},it={class:"text-gray-400 text-xs mt-1"},at={class:"container mx-auto px-6 py-12 max-w-5xl"},lt=["innerHTML"],ct={class:"mt-12 text-center"},yt={__name:"[slug]",async setup(h){let d,_;const g=H(),{data:n,pending:y,error:a}=([d,_]=L(()=>k(`/api/articles/${g.params.slug}`,"$sTesKB8fEV")),d=await d,_(),d),f=v(()=>n.value?.content?n.value.content.replace(/<img(?![^>]*loading=)/gi,'<img loading="lazy"'):""),s=v(()=>`https://cornemuses-blanc.fr/article/${g.params.slug}`);return S(()=>{if(!n.value)return{title:"Article"};const e=n.value,o=e.feature_image?e.feature_image.startsWith("http")?e.feature_image:`https://cornemuses-blanc.fr${e.feature_image}`:"https://cornemuses-blanc.fr/images/hero.png";return{title:e.meta_title||e.titre,meta:[{name:"description",content:e.meta_description||""},{property:"og:title",content:e.meta_title||e.titre},{property:"og:description",content:e.meta_description||""},{property:"og:image",content:o},{property:"og:url",content:s.value},{property:"og:type",content:"article"},{property:"og:site_name",content:"LaCornemuse"},{property:"og:locale",content:"fr_FR"},...e.date_publication?[{property:"article:published_time",content:e.date_publication}]:[],...e.date_publication?[{property:"article:modified_time",content:e.date_publication}]:[],...e.categorie?[{property:"article:section",content:e.categorie}]:[],{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e.meta_title||e.titre},{name:"twitter:description",content:e.meta_description||""},{name:"twitter:image",content:o}],link:[{rel:"canonical",href:s.value}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:e.meta_title||e.titre,description:e.meta_description||"",image:o,datePublished:e.date_publication||void 0,dateModified:e.date_publication||void 0,author:{"@type":"Organization",name:"LaCornemuse",url:"https://cornemuses-blanc.fr/a-propos"},publisher:{"@type":"Organization",name:"LaCornemuse",url:"https://cornemuses-blanc.fr",logo:{"@type":"ImageObject",url:"https://cornemuses-blanc.fr/logo.png"}},mainEntityOfPage:{"@type":"WebPage","@id":s.value},wordCount:e.word_count||void 0,articleSection:e.categorie||void 0,inLanguage:"fr"})},{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@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"},...e.categorie?[{"@type":"ListItem",position:3,name:e.categorie,item:`https://cornemuses-blanc.fr/categorie/${e.categorie}`}]:[],{"@type":"ListItem",position:e.categorie?4:3,name:e.titre,item:s.value}]})}]}}),(e,o)=>{const $=B,x=w,j=V,C=R;return c(),m("main",q,[i($),r(y)?(c(),m("div",J,[...o[1]||(o[1]=[t("div",{class:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-orange-500"},null,-1)])])):r(a)||!r(n)?(c(),m("div",U,[o[3]||(o[3]=t("h1",{class:"text-6xl font-black text-gray-200 mb-4"},"404",-1)),o[4]||(o[4]=t("p",{class:"text-2xl font-bold text-gray-900 mb-6"},"Article non trouvé",-1)),i(x,{to:"/blog",class:"text-orange-700 font-bold hover:underline"},{default:u(()=>[...o[2]||(o[2]=[l("Retourner au blog",-1)])]),_:1})])):(c(),m("div",W,[t("div",X,[t("img",{src:r(n).feature_image||"/images/hero.png",alt:r(n).titre,class:"w-full h-full object-cover",loading:"eager",fetchpriority:"high",onError:o[0]||(o[0]=A
1=>A.target.src="/images/hero.png")},null,40,K),o[13]||(o[13]=t("div",{class:"absolute inset-0 bg-black/60"},null,-1)),t("div",G,[t("div",Q,[t("nav",Y,[t("ol",Z,[t("li",null,[i(x,{to:"/",class:"hover:text-white transition"},{default:u(()=>[...o[5]||(o[5]=[l("Accueil",-1)])]),_:1})]),o[8]||(o[8]=t("li",null,[t("span",{class:"mx-1"},"/")],-1)),t("li",null,[i(x,{to:"/blog",class:"hover:text-white transition"},{default:u(()=>[...o[6]||(o[6]=[l("Blog",-1)])]),_:1})]),r(n).categorie?(c(),m("li",tt,[...o[7]||(o[7]=[t("span",{class:"mx-1"},"/",-1)])])):b("",!0),r(n).categorie?(c(),m("li",et,[i(x,{to:`/categorie/${r(n).categorie}`,class:"hover:text-white transition capitalize"},{default:u(()=>[l(p(r(n).categorie),1)]),_:1},8,["to"])])):b("",!0),o[9]||(o[9]=t("li",null,[t("span",{class:"mx-1"},"/")],-1)),t("li",ot,p(r(n).titre),1)])]),r(n).categorie?(c(),m("span",nt,p(r(n).categorie),1)):b("",!0),t("h1",rt,p(r(n).titre),1),t("div",st,[o[11]||(o[11]=l(" Par ",-1)),i(x,{to:"/a-propos",class:"text-orange-400 hover:text-orange-300 transition"},{default:u(()=>[...o[10]||(o[10]=[l("LaCornemuse",-1)])]),_:1}),o[12]||(o[12]=l(" — Experts en cornemuse depuis 15 ans ",-1))]),t("div",it," Publié le "+p(new Date(r(n).date_publication).toLocaleDateString("fr-FR",{year:"numeric",month:"long",day:"numeric"})),1)])])]),t("article",at,[t("div",{class:"prose prose-lg prose-orange max-w-none bg-white p-8 md:p-16 rounded-2xl shadow-xl -mt-20 relative z-10",innerHTML:r(f)},null,8,lt),t("div",ct,[i(x,{to:"/blog",class:"inline-flex items-center text-orange-700 font-bold hover:text-orange-900 transition"},{default:u(()=>[...o[14]||(o[14]=[t("svg",{class:"w-4 h-4 mr-2 transform rotate-180",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1),l(" Retour aux articles ",-1)])]),_:1})])]),i(j,{slug:r(g).params.slug},null,8,["slug"])])),i(C)])}}};export{yt 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.