mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-02 02:29:34 +01:00
fix: réorganiser la configuration du site et des collections dans nuxt.config.ts et content.config.ts
This commit is contained in:
11
app/app.vue
11
app/app.vue
@@ -2,17 +2,6 @@
|
|||||||
useHead({
|
useHead({
|
||||||
titleTemplate: (titleChunk) => {
|
titleTemplate: (titleChunk) => {
|
||||||
return titleChunk ? `${titleChunk} %separator %siteName` : 'Arthur Danjou %separator AI Safety & Applied Math'
|
return titleChunk ? `${titleChunk} %separator %siteName` : 'Arthur Danjou %separator AI Safety & Applied Math'
|
||||||
},
|
|
||||||
templateParams: {
|
|
||||||
siteName: 'Arthur Danjou',
|
|
||||||
separator: '•'
|
|
||||||
},
|
|
||||||
link: [
|
|
||||||
{ rel: 'icon', type: 'image/webp', href: '/favicon.webp' },
|
|
||||||
{ rel: 'apple-touch-icon', href: '/favicon.webp' }
|
|
||||||
],
|
|
||||||
htmlAttrs: {
|
|
||||||
lang: 'en'
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -5,22 +5,23 @@ export const collections = {
|
|||||||
type: 'page',
|
type: 'page',
|
||||||
source: 'index.md'
|
source: 'index.md'
|
||||||
}),
|
}),
|
||||||
projects: defineCollection({
|
projects: defineCollection(
|
||||||
type: 'data',
|
asSeoCollection({
|
||||||
source: 'projects/*.md',
|
type: 'data',
|
||||||
schema: z.object({
|
source: 'projects/*.md',
|
||||||
slug: z.string(),
|
schema: z.object({
|
||||||
title: z.string(),
|
slug: z.string(),
|
||||||
type: z.string().optional(),
|
title: z.string(),
|
||||||
description: z.string(),
|
type: z.string().optional(),
|
||||||
publishedAt: z.string(),
|
description: z.string(),
|
||||||
readingTime: z.number().optional(),
|
publishedAt: z.string(),
|
||||||
tags: z.array(z.string()),
|
readingTime: z.number().optional(),
|
||||||
favorite: z.boolean().optional(),
|
tags: z.array(z.string()),
|
||||||
status: z.enum(['active', 'completed', 'archived', 'in progress']),
|
favorite: z.boolean().optional(),
|
||||||
icon: z.string()
|
status: z.enum(['active', 'completed', 'archived', 'in progress']),
|
||||||
})
|
icon: z.string()
|
||||||
}),
|
})
|
||||||
|
})),
|
||||||
uses: defineCollection({
|
uses: defineCollection({
|
||||||
type: 'page',
|
type: 'page',
|
||||||
source: 'uses.md'
|
source: 'uses.md'
|
||||||
|
|||||||
@@ -19,11 +19,29 @@ export default defineNuxtConfig({
|
|||||||
pageTransition: { name: 'page', mode: 'out-in' },
|
pageTransition: { name: 'page', mode: 'out-in' },
|
||||||
rootAttrs: {
|
rootAttrs: {
|
||||||
class: 'bg-[var(--ui-bg)]'
|
class: 'bg-[var(--ui-bg)]'
|
||||||
|
},
|
||||||
|
head: {
|
||||||
|
templateParams: {
|
||||||
|
separator: '•'
|
||||||
|
},
|
||||||
|
titleTemplate: '%s %separator %siteName',
|
||||||
|
link: [
|
||||||
|
{ rel: 'icon', type: 'image/webp', href: '/favicon.webp' },
|
||||||
|
{ rel: 'apple-touch-icon', href: '/favicon.webp' }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
css: ['~/assets/css/main.css'],
|
css: ['~/assets/css/main.css'],
|
||||||
|
|
||||||
|
site: {
|
||||||
|
url: 'https://arthurdanjou.fr',
|
||||||
|
name: 'Arthur Danjou',
|
||||||
|
description: 'Research Engineer & Applied Mathematics Student. Focusing on AI Safety, Robustness, and Statistical Learning.',
|
||||||
|
defaultLocale: 'en',
|
||||||
|
indexable: true
|
||||||
|
},
|
||||||
|
|
||||||
colorMode: {
|
colorMode: {
|
||||||
preference: 'system',
|
preference: 'system',
|
||||||
fallback: 'light'
|
fallback: 'light'
|
||||||
@@ -120,6 +138,10 @@ export default defineNuxtConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
seo: {
|
||||||
|
redirectToCanonicalSiteUrl: true
|
||||||
|
},
|
||||||
|
|
||||||
studio: {
|
studio: {
|
||||||
route: '/studio',
|
route: '/studio',
|
||||||
repository: {
|
repository: {
|
||||||
|
|||||||
Reference in New Issue
Block a user