mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 11:31:36 +01:00
Add cover images for posts
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
---
|
||||
title: "aurora"
|
||||
description: "Minimalistic blog theme built with Astro, focused on accessibility and usability."
|
||||
---
|
||||
|
||||
## About
|
||||
|
||||
aurora is a minimal blog theme built with Astro, Svelte and plain CSS. It is focused on accessibility and usability.
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
cover: "../../assets/blog/build-a-good-website/cover.jpg"
|
||||
coverAlt: "Cover image for the blog post"
|
||||
title: "Build a good website"
|
||||
publicationDate: 2023-05-07
|
||||
description: "Learn to create and publish a performant, accessible and SEO friendly website."
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
cover: "../../assets/blog/markdown-style-guide/cover.jpg"
|
||||
coverAlt: "Cover image for the blog post"
|
||||
title: "Markdown style guide"
|
||||
publicationDate: 2023-05-20
|
||||
description: "Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro."
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
cover: "../../assets/blog/nix-flake-examples/cover.jpg"
|
||||
coverAlt: "Cover image for the blog post"
|
||||
title: "Nix flake examples"
|
||||
publicationDate: 2023-05-12
|
||||
description: "Improve reproducibility, composability and usability of nix-based projects with flakes and the experimental cli commands."
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
import { z, defineCollection } from "astro:content";
|
||||
|
||||
export const collections = {
|
||||
home: defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
}),
|
||||
}),
|
||||
blog: defineCollection({
|
||||
schema: z.object({
|
||||
schema: ({ image }) => z.object({
|
||||
cover: image().refine((img) => img.width >= 1080, {
|
||||
message: "Cover image must be at least 1080 pixels wide!",
|
||||
}),
|
||||
coverAlt: z.string(),
|
||||
title: z.string(),
|
||||
publicationDate: z.date(),
|
||||
description: z.string(),
|
||||
workInProgress: z.boolean().default(false),
|
||||
}),
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user