From 339a4cb4826eaa3ca24b66b95a6fcecc19550f26 Mon Sep 17 00:00:00 2001
From: ryanchristo
Date: Fri, 20 Nov 2026 08:33:43 -0800
Subject: [PATCH] update content
---
app/artifacts/essays/feed/route.ts | 41 -------------
app/artifacts/feed/route.ts | 44 --------------
app/artifacts/film/feed/route.ts | 41 -------------
app/artifacts/software/feed/route.ts | 41 -------------
app/artifacts/videos/feed/route.ts | 41 -------------
app/feed/atom/route.ts | 12 ++++
app/feed/json/route.ts | 12 ++++
app/feed/route.ts | 12 ++++
app/layout.tsx | 5 ++
app/page.tsx | 87 ++++++++++++++++------------
components/Footer.module.css | 1 +
components/Footer.tsx | 21 +++----
components/Header.tsx | 5 +-
public/key.asc | 13 +++++
utils/buildFeed.ts | 51 ++++++++++++++++
utils/getArtifact.ts | 3 +-
16 files changed, 166 insertions(+), 264 deletions(-)
delete mode 100644 app/artifacts/essays/feed/route.ts
delete mode 100644 app/artifacts/feed/route.ts
delete mode 100644 app/artifacts/film/feed/route.ts
delete mode 100644 app/artifacts/software/feed/route.ts
delete mode 100644 app/artifacts/videos/feed/route.ts
create mode 100644 app/feed/atom/route.ts
create mode 100644 app/feed/json/route.ts
create mode 100644 app/feed/route.ts
create mode 100644 public/key.asc
create mode 100644 utils/buildFeed.ts
diff --git a/app/artifacts/essays/feed/route.ts b/app/artifacts/essays/feed/route.ts
deleted file mode 100644
index 5663b7d..0000000
--- a/app/artifacts/essays/feed/route.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-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
deleted file mode 100644
index b236463..0000000
--- a/app/artifacts/feed/route.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-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
deleted file mode 100644
index 221855a..0000000
--- a/app/artifacts/film/feed/route.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-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
deleted file mode 100644
index 2b5083e..0000000
--- a/app/artifacts/software/feed/route.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-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
deleted file mode 100644
index 65b1dc6..0000000
--- a/app/artifacts/videos/feed/route.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-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
new file mode 100644
index 0000000..b3cfd7d
--- /dev/null
+++ b/app/feed/atom/route.ts
@@ -0,0 +1,12 @@
+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
new file mode 100644
index 0000000..fa08718
--- /dev/null
+++ b/app/feed/json/route.ts
@@ -0,0 +1,12 @@
+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/route.ts b/app/feed/route.ts
new file mode 100644
index 0000000..d19fb81
--- /dev/null
+++ b/app/feed/route.ts
@@ -0,0 +1,12 @@
+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 b0d064a..135ee48 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -7,6 +7,11 @@ import "./globals.css";
const Layout = ({ children }: any) => (
+
+
+
+
+
diff --git a/app/page.tsx b/app/page.tsx
index 66eb09a..13cea88 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -1,5 +1,7 @@
import { Metadata } from "next";
+import Link from "next/link";
+
import styles from "./page.module.css";
export const metadata: Metadata = {
@@ -20,18 +22,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"}
-
+
{"."}
@@ -97,113 +99,102 @@ const HomePage = () => {
@@ -242,6 +233,28 @@ 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 4efdc4b..a5485a9 100644
--- a/components/Footer.module.css
+++ b/components/Footer.module.css
@@ -19,6 +19,7 @@
.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 acdfbaf..bba0c91 100644
--- a/components/Footer.tsx
+++ b/components/Footer.tsx
@@ -1,5 +1,7 @@
"use client";
+import Link from "next/link";
+
import styles from "./Footer.module.css";
const Footer = () => {
@@ -7,22 +9,13 @@ const Footer = () => {
diff --git a/components/Header.tsx b/components/Header.tsx
index 73f1bd0..abdb95e 100644
--- a/components/Header.tsx
+++ b/components/Header.tsx
@@ -35,10 +35,7 @@ const Header = () => {
{"artifacts"}
- {"git"}
-
-
- {"rss"}
+ {"rss"}
diff --git a/public/key.asc b/public/key.asc
new file mode 100644
index 0000000..028f3a1
--- /dev/null
+++ b/public/key.asc
@@ -0,0 +1,13 @@
+-----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
new file mode 100644
index 0000000..bf9e91b
--- /dev/null
+++ b/utils/buildFeed.ts
@@ -0,0 +1,51 @@
+import { Feed } from "feed";
+import { getArtifacts } from "utils";
+
+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: {
+ rss2: `${SITE_URL}/feed`,
+ atom: `${SITE_URL}/feed/atom`,
+ json: `${SITE_URL}/feed/json`,
+ },
+ 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 8651cd2..3338053 100644
--- a/utils/getArtifact.ts
+++ b/utils/getArtifact.ts
@@ -6,7 +6,8 @@ import html from "remark-html";
const root = path.join(process.cwd(), "artifacts");
-export async function getArtifact(dir: string, id: string) {
+export const getArtifact = async (dir: string, id: string) => {
+ // set file path
const fullPath = path.join(root, dir, `${id}.md`);
// read file contents