Migrate to Astro V5 (#22)
* fix video url * update deploy script for using rsync * remove delete from script * translate resources page * fix images dimensions and favicon * add css optimization plugin and improve images * update project dependencies * refactor lang * post translated to spanish * fix metadata * update dependencies * update dependencies * update dependencies * update to Astro 5.x * format index.astro * Migrate content layer to Astro V5
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
import { defineCollection, z } from "astro:content";
|
||||
|
||||
const contentSchema = z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
image: z.string(),
|
||||
imageCaption: z.string(),
|
||||
date: z.coerce.date(),
|
||||
tags: z.array(z.string()),
|
||||
author: z.string(),
|
||||
rss: z.boolean(),
|
||||
draft: z.boolean({}).optional(),
|
||||
});
|
||||
|
||||
const blog = defineCollection({
|
||||
type: "content",
|
||||
schema: contentSchema,
|
||||
});
|
||||
|
||||
const portfolio = defineCollection({
|
||||
type: "content",
|
||||
schema: contentSchema,
|
||||
});
|
||||
|
||||
const pages = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
const videos = defineCollection({
|
||||
type: "content",
|
||||
schema: contentSchema
|
||||
})
|
||||
|
||||
export const collections = {
|
||||
blog,
|
||||
portfolio,
|
||||
pages,
|
||||
videos
|
||||
};
|
Reference in New Issue
Block a user