diff --git a/src/pages/index.astro b/src/pages/index.astro index ed26321..f542cdc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,60 +1,60 @@ ---- -import { getCollection } from 'astro:content' -import Layout from 'layouts/Layout.astro' -import Picture from 'components/Picture.astro' - -const projects = await getCollection('projects') -const clients = await Promise.all((await getCollection('clients')).map(async (it) => ({...it, obj: await it.render()}))) ---- - - -
- -
-

Développement de solutions selon vos besoins

-
-

Projets

-
- {projects.map((it) => ( - - {it.data.image && ( - - )} -

{it.data.title}

-
- ))} -
-

Clients

-
-
-
-
-

Tâches :

-
-
- {clients.map((client, index) => { - const { Content } = client.obj - client.data.logo - return ( - <> - {index > 0 && ( - - )} - - - ) - })} -
-
-
+--- +import { getCollection } from 'astro:content' +import Layout from 'layouts/Layout.astro' +import Picture from 'components/Picture.astro' + +const projects = await getCollection('projects') +const clients = await Promise.all((await getCollection('clients')).map(async (it) => ({...it, obj: await it.render()}))) +--- + + +
+ +
+

Développement de solutions selon vos besoins

+
+

Projets

+
+ {projects.map((it) => ( + + {it.data.image && ( + + )} +

{it.data.title}

+
+ ))} +
+

Clients

+
+
+
+
+

Tâches :O :

+
+
+ {clients.map((client, index) => { + const { Content } = client.obj + client.data.logo + return ( + <> + {index > 0 && ( + + )} + + + ) + })} +
+
+
diff --git a/src/pages/sitemap.xml.ts b/src/pages/sitemap.xml.ts index eee873f..8b86ccc 100644 --- a/src/pages/sitemap.xml.ts +++ b/src/pages/sitemap.xml.ts @@ -13,11 +13,11 @@ export const ALL: APIRoute = async () => { sitemap.addEntry('/', { priority: 1 }) - sitemap.addEntry('/projets/', { + sitemap.addEntry('/projects/', { priority: 0.5 }) for (const project of projects) { - sitemap.addEntry('/projets/' + project.slug, { + sitemap.addEntry('/projects/' + project.slug, { priority: 0.7 }) }