ensure valid rss items (#31)

* ensure valid rss items

* remove dayjs package
This commit is contained in:
Troy 2025-01-18 15:52:48 +00:00 committed by GitHub
parent ff81ab71bf
commit 3a886c4493
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 19 deletions

View file

@ -1,6 +1,7 @@
---
import { SITE } from "@consts";
import gradient from "../../public/assets/gradient.avif";
import { ClientRouter } from 'astro:transitions';
interface Props {
title: string;
@ -92,11 +93,7 @@ import redhatmono from "@fontsource-variable/red-hat-mono/files/red-hat-mono-lat
<meta property="twitter:image" content={new URL(image, Astro.url)} />
<!-- View Transitions -->
<style>
@view-transition {
navigation: auto;
}
</style>
<ClientRouter />
<!-- Font Preload -->
<link

View file

@ -1,4 +1,5 @@
import { defineCollection, z } from "astro:content";
import { rssSchema } from '@astrojs/rss';
const posts = defineCollection({
type: "content",
@ -16,7 +17,7 @@ const posts = defineCollection({
tags: z.array(z.string()),
extraAuthors: z.array(z.string()).optional(),
categories: z.array(z.string()),
}),
}).merge(rssSchema)
});
const projects = defineCollection({
@ -38,7 +39,7 @@ const projects = defineCollection({
featured: z.boolean().optional(),
collection: z.boolean().optional(),
includeHero: z.boolean().optional(),
}),
}).merge(rssSchema)
});
const work = defineCollection({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 KiB

After

Width:  |  Height:  |  Size: 753 KiB

View file

@ -26,13 +26,13 @@ const { title, description, image, date, updated, tags } = Astro.props;
updated={updated}
tags={tags}
/>
<body class="bg-primary text-secondary">
<div class="flex min-h-screen flex-col justify-start p-8 pt-0 md:pt-8">
<Header />
<main class="mx-auto w-full max-w-prose space-y-6">
<slot />
</main>
<Footer />
</div>
<body
class="flex min-h-screen flex-col justify-start bg-primary p-8 pt-0 text-secondary md:pt-8"
>
<Header />
<main class="mx-auto w-full max-w-prose space-y-6">
<slot />
</main>
<Footer />
</body>
</html>

View file

@ -25,14 +25,22 @@
@layer components {
.prose img {
@apply transition-transform hover:scale-[98%] active:scale-[200%];
@apply cursor-pointer transition-transform hover:scale-[98%] active:scale-[200%];
}
}
@media print {
body {
margin: 0;
color: #000;
background-color: #fff;
background: none;
color: black;
}
header,
footer,
main {
max-width: unset !important;
}
header,
footer {
display: none;
}
}