Add Categories and Tags with new configs

This commit is contained in:
prototypa
2022-08-30 11:37:19 -04:00
parent 4859dcee87
commit 49c6c5611b
26 changed files with 434 additions and 217 deletions

View File

@ -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,