ensure valid rss items
This commit is contained in:
parent
ff81ab71bf
commit
0e8a07970c
7 changed files with 33 additions and 19 deletions
7
package-lock.json
generated
7
package-lock.json
generated
|
@ -18,6 +18,7 @@
|
||||||
"@fontsource/borel": "^5.1.1",
|
"@fontsource/borel": "^5.1.1",
|
||||||
"astro": "^5.1.6",
|
"astro": "^5.1.6",
|
||||||
"astro-icon": "^1.1.4",
|
"astro-icon": "^1.1.4",
|
||||||
|
"dayjs": "^1.11.13",
|
||||||
"rehype-external-links": "^3.0.0",
|
"rehype-external-links": "^3.0.0",
|
||||||
"tailwindcss": "^3.4.15",
|
"tailwindcss": "^3.4.15",
|
||||||
"typescript": "^5.7.2"
|
"typescript": "^5.7.2"
|
||||||
|
@ -2977,6 +2978,12 @@
|
||||||
"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==",
|
"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==",
|
||||||
"license": "CC0-1.0"
|
"license": "CC0-1.0"
|
||||||
},
|
},
|
||||||
|
"node_modules/dayjs": {
|
||||||
|
"version": "1.11.13",
|
||||||
|
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",
|
||||||
|
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "4.4.0",
|
"version": "4.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"@fontsource/borel": "^5.1.1",
|
"@fontsource/borel": "^5.1.1",
|
||||||
"astro": "^5.1.6",
|
"astro": "^5.1.6",
|
||||||
"astro-icon": "^1.1.4",
|
"astro-icon": "^1.1.4",
|
||||||
|
"dayjs": "^1.11.13",
|
||||||
"rehype-external-links": "^3.0.0",
|
"rehype-external-links": "^3.0.0",
|
||||||
"tailwindcss": "^3.4.15",
|
"tailwindcss": "^3.4.15",
|
||||||
"typescript": "^5.7.2"
|
"typescript": "^5.7.2"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
import { SITE } from "@consts";
|
import { SITE } from "@consts";
|
||||||
import gradient from "../../public/assets/gradient.avif";
|
import gradient from "../../public/assets/gradient.avif";
|
||||||
|
import { ClientRouter } from 'astro:transitions';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
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)} />
|
<meta property="twitter:image" content={new URL(image, Astro.url)} />
|
||||||
|
|
||||||
<!-- View Transitions -->
|
<!-- View Transitions -->
|
||||||
<style>
|
<ClientRouter />
|
||||||
@view-transition {
|
|
||||||
navigation: auto;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<!-- Font Preload -->
|
<!-- Font Preload -->
|
||||||
<link
|
<link
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { defineCollection, z } from "astro:content";
|
import { defineCollection, z } from "astro:content";
|
||||||
|
import { rssSchema } from '@astrojs/rss';
|
||||||
|
|
||||||
const posts = defineCollection({
|
const posts = defineCollection({
|
||||||
type: "content",
|
type: "content",
|
||||||
|
@ -16,7 +17,7 @@ const posts = defineCollection({
|
||||||
tags: z.array(z.string()),
|
tags: z.array(z.string()),
|
||||||
extraAuthors: z.array(z.string()).optional(),
|
extraAuthors: z.array(z.string()).optional(),
|
||||||
categories: z.array(z.string()),
|
categories: z.array(z.string()),
|
||||||
}),
|
}).merge(rssSchema)
|
||||||
});
|
});
|
||||||
|
|
||||||
const projects = defineCollection({
|
const projects = defineCollection({
|
||||||
|
@ -38,7 +39,7 @@ const projects = defineCollection({
|
||||||
featured: z.boolean().optional(),
|
featured: z.boolean().optional(),
|
||||||
collection: z.boolean().optional(),
|
collection: z.boolean().optional(),
|
||||||
includeHero: z.boolean().optional(),
|
includeHero: z.boolean().optional(),
|
||||||
}),
|
}).merge(rssSchema)
|
||||||
});
|
});
|
||||||
|
|
||||||
const work = defineCollection({
|
const work = defineCollection({
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 729 KiB After Width: | Height: | Size: 753 KiB |
|
@ -26,13 +26,13 @@ const { title, description, image, date, updated, tags } = Astro.props;
|
||||||
updated={updated}
|
updated={updated}
|
||||||
tags={tags}
|
tags={tags}
|
||||||
/>
|
/>
|
||||||
<body class="bg-primary text-secondary">
|
<body
|
||||||
<div class="flex min-h-screen flex-col justify-start p-8 pt-0 md:pt-8">
|
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">
|
<Header />
|
||||||
<slot />
|
<main class="mx-auto w-full max-w-prose space-y-6">
|
||||||
</main>
|
<slot />
|
||||||
<Footer />
|
</main>
|
||||||
</div>
|
<Footer />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -25,14 +25,22 @@
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
.prose img {
|
.prose img {
|
||||||
@apply transition-transform hover:scale-[98%] active:scale-[200%];
|
@apply cursor-pointer transition-transform hover:scale-[98%] active:scale-[200%];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
background: none;
|
||||||
color: #000;
|
color: black;
|
||||||
background-color: #fff;
|
}
|
||||||
|
header,
|
||||||
|
footer,
|
||||||
|
main {
|
||||||
|
max-width: unset !important;
|
||||||
|
}
|
||||||
|
header,
|
||||||
|
footer {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue