8408fd6466
ci/woodpecker/push/woodpecker Pipeline was successful
SEO : - composable useSeoPage() : og:*, Twitter Cards, canonical sur toutes les pages (15 pages) - app.vue : JSON-LD Organization + Book, og:image global og-default.png - og-default.png 1200×630 : logo § calligraphique + texte (Pillow) - nuxt.config.ts : @nuxtjs/sitemap avec 26 URLs statiques Analytics Umami : - useTracking() : helpers typés audio/pdf/player/scroll/cta - useScrollTracking() : scroll depth 25/50/75/100% + liens externes auto - useAudioPlayer : trackAudioPlay/Progress/Complete - BookPdfReader : trackPdfOpen/Close avec durée - BookPlayer : trackPlayerOpen/Chapter/Mode - docker-compose : variables NUXT_PUBLIC_UMAMI_* passées au container Images : - Couv-Economie-du-don.jpg ajoutée dans public/images/ - bookplayer.config.yml + home.yml : références mises à jour Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
88 lines
2.5 KiB
Vue
88 lines
2.5 KiB
Vue
<template>
|
|
<div class="min-h-dvh">
|
|
<NuxtLoadingIndicator color="hsl(12, 76%, 48%)" />
|
|
<NuxtRouteAnnouncer />
|
|
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
|
|
<ClientOnly>
|
|
<PlayerPersistent />
|
|
</ClientOnly>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const paletteStore = usePaletteStore()
|
|
onMounted(() => paletteStore.applyToDOM())
|
|
|
|
const config = useRuntimeConfig()
|
|
const siteUrl = (config.public.siteUrl as string) || 'https://librodrome.org'
|
|
|
|
// Umami analytics — inject script only when configured
|
|
if (config.public.umamiWebsiteId && config.public.umamiUrl) {
|
|
useHead({
|
|
script: [{
|
|
src: `${config.public.umamiUrl}/script.js`,
|
|
defer: true,
|
|
'data-website-id': config.public.umamiWebsiteId,
|
|
}],
|
|
})
|
|
}
|
|
|
|
// Global SEO defaults — surchargeables page par page via useSeoPage()
|
|
useHead({
|
|
titleTemplate: (title) => title ? `${title} — Le Librodrome` : 'Le Librodrome',
|
|
})
|
|
|
|
useSeoMeta({
|
|
ogSiteName: 'Le Librodrome',
|
|
ogType: 'website',
|
|
ogLocale: 'fr_FR',
|
|
ogImage: `${siteUrl}/og-default.png`,
|
|
ogImageWidth: 1200,
|
|
ogImageHeight: 630,
|
|
twitterCard: 'summary_large_image',
|
|
twitterSite: '@librodrome',
|
|
})
|
|
|
|
// JSON-LD — Organisation + Livre
|
|
useHead({
|
|
script: [
|
|
{
|
|
type: 'application/ld+json',
|
|
innerHTML: JSON.stringify({
|
|
'@context': 'https://schema.org',
|
|
'@graph': [
|
|
{
|
|
'@type': 'Organization',
|
|
'@id': `${siteUrl}/#organization`,
|
|
name: 'Le Librodrome',
|
|
url: siteUrl,
|
|
logo: {
|
|
'@type': 'ImageObject',
|
|
url: `${siteUrl}/images/og-default.png`,
|
|
},
|
|
description: 'Plateforme d\'autonomie numérique, économique et citoyenne à l\'échelle des bassins de vie.',
|
|
},
|
|
{
|
|
'@type': 'Book',
|
|
'@id': `${siteUrl}/economique/modele-eco#book`,
|
|
name: 'Une économie du don — enfin concevable',
|
|
author: { '@type': 'Person', name: 'Yvv' },
|
|
publisher: { '@id': `${siteUrl}/#organization` },
|
|
isbn: '979-1-042-45206-3',
|
|
inLanguage: 'fr',
|
|
image: `${siteUrl}/images/Couv-Economie-du-don.jpg`,
|
|
url: `${siteUrl}/economique/modele-eco`,
|
|
description: 'Un livre et 9 chansons pour explorer les fondements d\'une économie fondée sur le don.',
|
|
license: 'https://creativecommons.org/licenses/by-nc/4.0/',
|
|
},
|
|
],
|
|
}),
|
|
},
|
|
],
|
|
})
|
|
</script>
|