feat: add rss

This commit is contained in:
KazooTTT
2024-11-23 16:51:13 +08:00
parent 01c70257a1
commit 790c91c342
7 changed files with 22 additions and 6 deletions

View File

@ -45,7 +45,7 @@ const mdProjects = allPosts
.map((post) => ({
title: post.data.title,
description: post.data.description || '',
url: post.data.projectUrl ? post.data.projectUrl : `/posts/${post.slug}`,
url: post.data.projectUrl ? post.data.projectUrl : `/blog/${post.slug}`,
imagePath: post.data.coverImage,
altText: post.data.title,
isExternal: !!post.data.projectUrl