mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
separate repository grid styles/logic from the card component
This commit is contained in:
@ -3,16 +3,13 @@ import { buildFeed } from "../lib/build-feed";
|
||||
import type { GetServerSideProps } from "next";
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
if (context && context.res) {
|
||||
const { res } = context;
|
||||
const notes = getAllNotes(["title", "date", "image", "slug", "description"]);
|
||||
const feed = buildFeed(notes);
|
||||
|
||||
const notes = getAllNotes(["title", "date", "image", "slug", "description"]);
|
||||
|
||||
const feed = buildFeed(notes);
|
||||
res.setHeader("content-type", "application/atom+xml");
|
||||
res.write(feed.atom1());
|
||||
res.end();
|
||||
}
|
||||
const { res } = context;
|
||||
res.setHeader("content-type", "application/atom+xml");
|
||||
res.write(feed.atom1());
|
||||
res.end();
|
||||
|
||||
return {
|
||||
props: {},
|
||||
|
Reference in New Issue
Block a user