mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 13:54:05 +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({
|
||||
titleTemplate: (titleChunk) => {
|
||||
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>
|
||||
|
||||
@@ -5,22 +5,23 @@ export const collections = {
|
||||
type: 'page',
|
||||
source: 'index.md'
|
||||
}),
|
||||
projects: defineCollection({
|
||||
type: 'data',
|
||||
source: 'projects/*.md',
|
||||
schema: z.object({
|
||||
slug: z.string(),
|
||||
title: z.string(),
|
||||
type: z.string().optional(),
|
||||
description: z.string(),
|
||||
publishedAt: z.string(),
|
||||
readingTime: z.number().optional(),
|
||||
tags: z.array(z.string()),
|
||||
favorite: z.boolean().optional(),
|
||||
status: z.enum(['active', 'completed', 'archived', 'in progress']),
|
||||
icon: z.string()
|
||||
})
|
||||
}),
|
||||
projects: defineCollection(
|
||||
asSeoCollection({
|
||||
type: 'data',
|
||||
source: 'projects/*.md',
|
||||
schema: z.object({
|
||||
slug: z.string(),
|
||||
title: z.string(),
|
||||
type: z.string().optional(),
|
||||
description: z.string(),
|
||||
publishedAt: z.string(),
|
||||
readingTime: z.number().optional(),
|
||||
tags: z.array(z.string()),
|
||||
favorite: z.boolean().optional(),
|
||||
status: z.enum(['active', 'completed', 'archived', 'in progress']),
|
||||
icon: z.string()
|
||||
})
|
||||
})),
|
||||
uses: defineCollection({
|
||||
type: 'page',
|
||||
source: 'uses.md'
|
||||
|
||||
@@ -19,11 +19,29 @@ export default defineNuxtConfig({
|
||||
pageTransition: { name: 'page', mode: 'out-in' },
|
||||
rootAttrs: {
|
||||
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'],
|
||||
|
||||
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: {
|
||||
preference: 'system',
|
||||
fallback: 'light'
|
||||
@@ -120,6 +138,10 @@ export default defineNuxtConfig({
|
||||
}
|
||||
},
|
||||
|
||||
seo: {
|
||||
redirectToCanonicalSiteUrl: true
|
||||
},
|
||||
|
||||
studio: {
|
||||
route: '/studio',
|
||||
repository: {
|
||||
|
||||
Reference in New Issue
Block a user