diff --git a/app/artifacts/essays/feed/route.ts b/app/artifacts/essays/feed/route.ts
new file mode 100644
index 0000000..5663b7d
--- /dev/null
+++ b/app/artifacts/essays/feed/route.ts
@@ -0,0 +1,41 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+const SITE_URL = "https://chora.io/artifacts/essays";
+
+function getAllArtifacts() {
+ return [
+ ...getArtifacts('essays'),
+ ]
+}
+
+export const revalidate = false;
+
+export async function GET() {
+ const feed = new Feed({
+ title: "ryan's artifacts (essays)",
+ description: "ryan's artifacts (essays)",
+ id: SITE_URL,
+ link: SITE_URL,
+ language: "en",
+ feedLinks: { rss2: `${SITE_URL}/feed` },
+ ttl: 60,
+ });
+
+ for (const a of getAllArtifacts()) {
+ feed.addItem({
+ title: a.title,
+ id: `${SITE_URL}/${a.id}`,
+ link: `${SITE_URL}/${a.id}`,
+ description: a.description,
+ date: a.created,
+ });
+ }
+
+ return new Response(feed.rss2(), {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/app/artifacts/feed/route.ts b/app/artifacts/feed/route.ts
new file mode 100644
index 0000000..b236463
--- /dev/null
+++ b/app/artifacts/feed/route.ts
@@ -0,0 +1,44 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+const SITE_URL = "https://ryanchristo.com/artifacts";
+
+function getAllArtifacts() {
+ return [
+ ...getArtifacts('essays'),
+ ...getArtifacts('film'),
+ ...getArtifacts('software'),
+ ...getArtifacts('videos'),
+ ]
+}
+
+export const revalidate = false;
+
+export async function GET() {
+ const feed = new Feed({
+ title: "ryan's artifacts",
+ description: "ryan's artifacts",
+ id: SITE_URL,
+ link: SITE_URL,
+ language: "en",
+ feedLinks: { rss2: `${SITE_URL}/feed` },
+ ttl: 60,
+ });
+
+ for (const a of getAllArtifacts()) {
+ feed.addItem({
+ title: a.title,
+ id: `${SITE_URL}/${a.category}/${a.id}`,
+ link: `${SITE_URL}/${a.category}/${a.id}`,
+ description: a.description,
+ date: a.created,
+ });
+ }
+
+ return new Response(feed.rss2(), {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/app/artifacts/film/feed/route.ts b/app/artifacts/film/feed/route.ts
new file mode 100644
index 0000000..221855a
--- /dev/null
+++ b/app/artifacts/film/feed/route.ts
@@ -0,0 +1,41 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+const SITE_URL = "https://chora.io/artifacts/film";
+
+function getAllArtifacts() {
+ return [
+ ...getArtifacts('film'),
+ ]
+}
+
+export const revalidate = false;
+
+export async function GET() {
+ const feed = new Feed({
+ title: "ryan's artifacts (film)",
+ description: "ryan's artifacts (film)",
+ id: SITE_URL,
+ link: SITE_URL,
+ language: "en",
+ feedLinks: { rss2: `${SITE_URL}/feed` },
+ ttl: 60,
+ });
+
+ for (const a of getAllArtifacts()) {
+ feed.addItem({
+ title: a.title,
+ id: `${SITE_URL}/${a.id}`,
+ link: `${SITE_URL}/${a.id}`,
+ description: a.description,
+ date: a.created,
+ });
+ }
+
+ return new Response(feed.rss2(), {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/app/artifacts/software/feed/route.ts b/app/artifacts/software/feed/route.ts
new file mode 100644
index 0000000..2b5083e
--- /dev/null
+++ b/app/artifacts/software/feed/route.ts
@@ -0,0 +1,41 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+const SITE_URL = "https://chora.io/artifacts/software";
+
+function getAllArtifacts() {
+ return [
+ ...getArtifacts('software'),
+ ]
+}
+
+export const revalidate = false;
+
+export async function GET() {
+ const feed = new Feed({
+ title: "ryan's artifacts (software)",
+ description: "ryan's artifacts (software)",
+ id: SITE_URL,
+ link: SITE_URL,
+ language: "en",
+ feedLinks: { rss2: `${SITE_URL}/feed` },
+ ttl: 60,
+ });
+
+ for (const a of getAllArtifacts()) {
+ feed.addItem({
+ title: a.title,
+ id: `${SITE_URL}/${a.id}`,
+ link: `${SITE_URL}/${a.id}`,
+ description: a.description,
+ date: a.created,
+ });
+ }
+
+ return new Response(feed.rss2(), {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/app/artifacts/videos/feed/route.ts b/app/artifacts/videos/feed/route.ts
new file mode 100644
index 0000000..65b1dc6
--- /dev/null
+++ b/app/artifacts/videos/feed/route.ts
@@ -0,0 +1,41 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+const SITE_URL = "https://chora.io/artifacts/videos";
+
+function getAllArtifacts() {
+ return [
+ ...getArtifacts('videos'),
+ ]
+}
+
+export const revalidate = false;
+
+export async function GET() {
+ const feed = new Feed({
+ title: "ryan's artifacts (videos)",
+ description: "ryan's artifacts (videos)",
+ id: SITE_URL,
+ link: SITE_URL,
+ language: "en",
+ feedLinks: { rss2: `${SITE_URL}/feed` },
+ ttl: 60,
+ });
+
+ for (const a of getAllArtifacts()) {
+ feed.addItem({
+ title: a.title,
+ id: `${SITE_URL}/${a.id}`,
+ link: `${SITE_URL}/${a.id}`,
+ description: a.description,
+ date: a.created,
+ });
+ }
+
+ return new Response(feed.rss2(), {
+ headers: {
+ "Content-Type": "application/rss+xml; charset=utf-8",
+ "Cache-Control": "public, max-age=3600",
+ },
+ });
+}
diff --git a/app/feed/atom/route.ts b/app/feed/atom/route.ts
deleted file mode 100644
index b3cfd7d..0000000
--- a/app/feed/atom/route.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { buildFeed } from "utils/buildFeed";
-
-export const revalidate = false;
-
-export async function GET() {
- return new Response(buildFeed().atom1(), {
- headers: {
- "Content-Type": "application/atom+xml; charset=utf-8",
- "Cache-Control": "public, max-age=3600",
- },
- });
-}
diff --git a/app/feed/json/route.ts b/app/feed/json/route.ts
deleted file mode 100644
index fa08718..0000000
--- a/app/feed/json/route.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { buildFeed } from "utils/buildFeed";
-
-export const revalidate = false;
-
-export async function GET() {
- return new Response(buildFeed().json1(), {
- headers: {
- "Content-Type": "application/feed+json; charset=utf-8",
- "Cache-Control": "public, max-age=3600",
- },
- });
-}
diff --git a/app/feed/rss/route.ts b/app/feed/rss/route.ts
deleted file mode 100644
index d19fb81..0000000
--- a/app/feed/rss/route.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { buildFeed } from "utils/buildFeed";
-
-export const revalidate = false;
-
-export async function GET() {
- return new Response(buildFeed().rss2(), {
- headers: {
- "Content-Type": "application/rss+xml; charset=utf-8",
- "Cache-Control": "public, max-age=3600",
- },
- });
-}
diff --git a/app/layout.tsx b/app/layout.tsx
index 7ccf028..b0d064a 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -7,11 +7,6 @@ import "./globals.css";
const Layout = ({ children }: any) => (
-
-
-
-
-
diff --git a/app/page.tsx b/app/page.tsx
index 13cea88..66eb09a 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -1,7 +1,5 @@
import { Metadata } from "next";
-import Link from "next/link";
-
import styles from "./page.module.css";
export const metadata: Metadata = {
@@ -22,18 +20,18 @@ const HomePage = () => {
{
"I bounced around jobs after college but eventually settled into a career as a software engineer and technical product manager. I now continue this work and provide software consulting services through "
}
-
+
{"Chora Studio"}
-
+
{"."}
{
"More recently I've been reading various fields of theory, philosophy, and science fiction while also exploring farming, forestry, and alternative ways of living. I also contribute to a project called "
}
-
+
{"Open Machine"}
-
+
{"."}
@@ -99,102 +97,113 @@ const HomePage = () => {
-
{"github"}
-
+
{" - for software projects"}
-
{"codeberg"}
-
+
{" - for software projects"}
{/*
-
{"bluesky"}
-
+
{" - for research projects"}
*/}
{/*
-
{"mastodon"}
-
+
{" - for research projects"}
*/}
-
{"substack"}
-
+
{" - for writing projects"}
-
{"hackmd"}
-
+
{" - for collaborative notes"}
{/*
-
{"gitlab"}
-
+
{" - for software projects"}
*/}
{/*
-
{"tangled"}
-
+
{" - for software projects"}
*/}
{/*
-
{"npmjs"}
-
+
{" - for software projects"}
*/}
{/*
-
{"bufbuild"}
-
+
{" - for software projects"}
*/}
{/*
-
{"medium"}
-
+
{" - for historical content"}
*/}
@@ -233,28 +242,6 @@ const HomePage = () => {
}
-
- {"additional links"}
-
-
-
- {"git"}
-
- {" - self-hosted git for personal projects"}
-
-
-
- {"pgp"}
-
- {" - a public key for encrypting messages"}
-
-
);
diff --git a/components/Footer.module.css b/components/Footer.module.css
index a5485a9..4efdc4b 100644
--- a/components/Footer.module.css
+++ b/components/Footer.module.css
@@ -19,7 +19,6 @@
.footer li {
align-items: center;
display: flex;
- font-weight: 400;
height: inherit;
justify-content: center;
margin: 0 0.75em;
diff --git a/components/Footer.tsx b/components/Footer.tsx
index bba0c91..acdfbaf 100644
--- a/components/Footer.tsx
+++ b/components/Footer.tsx
@@ -1,7 +1,5 @@
"use client";
-import Link from "next/link";
-
import styles from "./Footer.module.css";
const Footer = () => {
@@ -9,13 +7,22 @@ const Footer = () => {
diff --git a/components/Header.tsx b/components/Header.tsx
index 3c61752..73f1bd0 100644
--- a/components/Header.tsx
+++ b/components/Header.tsx
@@ -35,7 +35,10 @@ const Header = () => {
{"artifacts"}
- {"rss"}
+ {"git"}
+
+
+ {"rss"}
diff --git a/public/key.asc b/public/key.asc
deleted file mode 100644
index 028f3a1..0000000
--- a/public/key.asc
+++ /dev/null
@@ -1,13 +0,0 @@
------BEGIN PGP PUBLIC KEY BLOCK-----
-
-mDMEav+UahYJKwYBBAHaRw8BAQdAN24QVcxsmiVrkGYvI0IWrRHbH+f/1VdHAma/
-ds0+aB20LXJ5YW4gY2hyaXN0b2ZmZXJzZW4gPGNvbnRhY3RAcnlhbmNocmlzdG8u
-Y29tPoiQBBMWCgA4FiEEykGRcezSGk9x97bvbL0rKeVWxlEFAmr/lGoCGwMFCwkI
-BwIGFQoJCAsCBBYCAwECHgECF4AACgkQbL0rKeVWxlH4KAD/f9gwkGcZAlJyTN5Q
-eZPVb1e9z27SfpVVbpuUod7ehqoBAM8vGqpTWM83/G3/nGbHlO0/QKFlYDOmmnQe
-8MRxel8DuDgEav+UahIKKwYBBAGXVQEFAQEHQLcg+gFxyWGu6XJvBL2yfd+6FgT8
-9zZGG/Yc0uxwgCwiAwEIB4h4BBgWCgAgFiEEykGRcezSGk9x97bvbL0rKeVWxlEF
-Amr/lGoCGwwACgkQbL0rKeVWxlHyOAEAsB4B83b6fmHcC+wgTD8YjKZI34oMviEG
-TdZ8q7Ruf6YBALdW//i5MHiPGnZfbvdEcv8Lj9nbGTcxr46UZ1pnkeYO
-=5/uS
------END PGP PUBLIC KEY BLOCK-----
diff --git a/utils/buildFeed.ts b/utils/buildFeed.ts
deleted file mode 100644
index c778c06..0000000
--- a/utils/buildFeed.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Feed } from "feed";
-import { getArtifacts } from "utils";
-
-// const SITE_URL = "http://localhost:3000";
-const SITE_URL = "https://ryanchristo.com";
-
-function getAllArtifacts() {
- return [
- ...getArtifacts('essays'),
- // ...getArtifacts('film'),
- // ...getArtifacts('software'),
- // ...getArtifacts('videos'),
- ]
-}
-
-export function buildFeed() {
- const feed = new Feed({
- title: "Ryan Christoffersen",
- description: "Ryan Christoffersen's Feed",
- id: SITE_URL,
- link: SITE_URL,
- language: "en",
- favicon: `${SITE_URL}/favicon.ico`,
- feedLinks: {
- atom: `${SITE_URL}/feed/atom`,
- json: `${SITE_URL}/feed/json`,
- rss2: `${SITE_URL}/feed/rss`,
- },
- author: { name: "Ryan Christoffersen" },
- copyright: "All rights reserved",
- ttl: 60,
- });
-
- for (const a of getAllArtifacts()) {
- feed.addItem({
- title: a.title,
- id: `${SITE_URL}/${a.category}/${a.id}`,
- link: `${SITE_URL}/${a.category}/${a.id}`,
- description: a.description,
- date: a.updated,
- published: a.created,
- author: [{ name: a.author }],
- category: [{ name: a.category }],
- // content: a.content,
- // audio: a.audio,
- // video: a.video,
- copyright: "All rights reserved",
- });
- }
-
- return feed;
-}
diff --git a/utils/getArtifact.ts b/utils/getArtifact.ts
index 3338053..8651cd2 100644
--- a/utils/getArtifact.ts
+++ b/utils/getArtifact.ts
@@ -6,8 +6,7 @@ import html from "remark-html";
const root = path.join(process.cwd(), "artifacts");
-export const getArtifact = async (dir: string, id: string) => {
- // set file path
+export async function getArtifact(dir: string, id: string) {
const fullPath = path.join(root, dir, `${id}.md`);
// read file contents