Add Categories and Tags with new configs
This commit is contained in:
@ -2,6 +2,7 @@ import rss from "@astrojs/rss";
|
||||
|
||||
import { SITE } from "~/config.mjs";
|
||||
import { fetchPosts } from "~/utils/fetchPosts";
|
||||
import { getPermalink } from "~/utils/permalinks";
|
||||
|
||||
const posts = await fetchPosts();
|
||||
|
||||
@ -12,7 +13,7 @@ export const get = () =>
|
||||
site: import.meta.env.SITE,
|
||||
|
||||
items: posts.map((post) => ({
|
||||
link: `blog/${post.slug}`,
|
||||
link: getPermalink(post.slug, "post"),
|
||||
title: post.title,
|
||||
description: post.description,
|
||||
pubDate: post.pubDate,
|
||||
|
Reference in New Issue
Block a user