Compare commits

...

2 commits

Author SHA1 Message Date
ryanchristo
0f971ff30e
update content 2026-11-20 09:11:13 -08:00
ryanchristo
339a4cb482
update content 2026-11-20 08:33:43 -08:00
16 changed files with 167 additions and 264 deletions

View file

@ -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",
},
});
}

View file

@ -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",
},
});
}

View file

@ -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",
},
});
}

View file

@ -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",
},
});
}

View file

@ -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",
},
});
}

12
app/feed/atom/route.ts Normal file
View file

@ -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",
},
});
}

12
app/feed/json/route.ts Normal file
View file

@ -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",
},
});
}

12
app/feed/rss/route.ts Normal file
View file

@ -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",
},
});
}

View file

@ -7,6 +7,11 @@ import "./globals.css";
const Layout = ({ children }: any) => ( const Layout = ({ children }: any) => (
<html lang="en"> <html lang="en">
<head>
<link rel="alternate" type="application/rss+xml" title="rss" href="/feed/rss" />
<link rel="alternate" type="application/atom+xml" title="atom" href="/feed/atom" />
<link rel="alternate" type="application/feed+json" title="json" href="/feed/json" />
</head>
<body> <body>
<ThemeContextProvider> <ThemeContextProvider>
<main> <main>

View file

@ -1,5 +1,7 @@
import { Metadata } from "next"; import { Metadata } from "next";
import Link from "next/link";
import styles from "./page.module.css"; import styles from "./page.module.css";
export const metadata: Metadata = { 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 " "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 "
} }
<a href="https://chora.studio" target="_blank"> <Link href="https://chora.studio" target="_blank">
{"Chora Studio"} {"Chora Studio"}
</a> </Link>
{"."} {"."}
</p> </p>
<p> <p>
{ {
"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 " "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 "
} }
<a href="https://theopenmachine.net" target="_blank"> <Link href="https://theopenmachine.net" target="_blank">
{"Open Machine"} {"Open Machine"}
</a> </Link>
{"."} {"."}
</p> </p>
<hr /> <hr />
@ -97,113 +99,102 @@ const HomePage = () => {
</p> </p>
<ul> <ul>
<li> <li>
<a <Link
href="https://github.com/ryanchristo" href="https://github.com/ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"github"} {"github"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li> </li>
<li> <li>
<a <Link
href="https://codeberg.org/ryanchristo" href="https://codeberg.org/ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"codeberg"} {"codeberg"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li> </li>
{/*<li> {/*<li>
<a <Link
href="https://bsky.app/profile/ryanchristo.bsky.social" href="https://bsky.app/profile/ryanchristo.bsky.social"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"bluesky"} {"bluesky"}
</a> </Link>
<i>{" - for research projects"}</i> <i>{" - for research projects"}</i>
</li>*/} </li>*/}
{/*<li> {/*<li>
<a <Link
href="https://mastodon.social/@ryanchristo" href="https://mastodon.social/@ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"mastodon"} {"mastodon"}
</a> </Link>
<i>{" - for research projects"}</i> <i>{" - for research projects"}</i>
</li>*/} </li>*/}
<li> <li>
<a <Link
href="https://substack.com/@ryanchristo" href="https://substack.com/@ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"substack"} {"substack"}
</a> </Link>
<i>{" - for writing projects"}</i> <i>{" - for writing projects"}</i>
</li> </li>
<li> <li>
<a <Link
href="https://hackmd.io/@ryanchristo" href="https://hackmd.io/@ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"hackmd"} {"hackmd"}
</a> </Link>
<i>{" - for collaborative notes"}</i> <i>{" - for collaborative notes"}</i>
</li> </li>
{/*<li> {/*<li>
<a <Link
href="https://gitlab.com/ryanchristo" href="https://gitlab.com/ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"gitlab"} {"gitlab"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li>*/} </li>*/}
{/*<li> {/*<li>
<a <Link
href="https://tangled.org/ryanchristo.tngl.sh" href="https://tangled.org/ryanchristo.tngl.sh"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"tangled"} {"tangled"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li>*/} </li>*/}
{/*<li> {/*<li>
<a <Link
href="https://www.npmjs.com/~ryanchristo" href="https://www.npmjs.com/~ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"npmjs"} {"npmjs"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li>*/} </li>*/}
{/*<li> {/*<li>
<a <Link
href="https://buf.build/ryanchristo" href="https://buf.build/ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"bufbuild"} {"bufbuild"}
</a> </Link>
<i>{" - for software projects"}</i> <i>{" - for software projects"}</i>
</li>*/} </li>*/}
{/*<li> {/*<li>
<a <Link
href="https://medium.com/@ryanchristo" href="https://medium.com/@ryanchristo"
rel="noopener noreferrer"
target="_blank" target="_blank"
> >
{"medium"} {"medium"}
</a> </Link>
<i>{" - for historical content"}</i> <i>{" - for historical content"}</i>
</li>*/} </li>*/}
</ul> </ul>
@ -242,6 +233,28 @@ const HomePage = () => {
} }
</i> </i>
</p> </p>
<hr />
<h2>{"additional links"}</h2>
<ul>
<li>
<Link
href="https://git.ryanchristo.com/explore/repos"
target="_blank"
>
{"git"}
</Link>
<i>{" - self-hosted git for personal projects"}</i>
</li>
<li>
<Link
href="/key.asc"
target="_blank"
>
{"pgp"}
</Link>
<i>{" - a public key for encrypting messages"}</i>
</li>
</ul>
</div> </div>
</div> </div>
); );

View file

@ -19,6 +19,7 @@
.footer li { .footer li {
align-items: center; align-items: center;
display: flex; display: flex;
font-weight: 400;
height: inherit; height: inherit;
justify-content: center; justify-content: center;
margin: 0 0.75em; margin: 0 0.75em;

View file

@ -1,5 +1,7 @@
"use client"; "use client";
import Link from "next/link";
import styles from "./Footer.module.css"; import styles from "./Footer.module.css";
const Footer = () => { const Footer = () => {
@ -7,22 +9,13 @@ const Footer = () => {
<div className={styles.footer}> <div className={styles.footer}>
<ul> <ul>
<li> <li>
<a <Link href="https://git.ryanchristo.com/explore/repos" target="git">{"git"}</Link>
href="https://github.com/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"github"}
</a>
</li> </li>
<li> <li>
<a <Link href="/artifacts/feed" target="_blank">{"rss"}</Link>
href="https://substack.com/@ryanchristo" </li>
rel="noopener noreferrer" <li>
target="_blank" <Link href="/key.asc" target="_blank">{"pgp"}</Link>
>
{"substack"}
</a>
</li> </li>
</ul> </ul>
</div> </div>

View file

@ -35,10 +35,7 @@ const Header = () => {
<Link href="/artifacts">{"artifacts"}</Link> <Link href="/artifacts">{"artifacts"}</Link>
</li> </li>
<li> <li>
<Link href="https://git.ryanchristo.com/explore/repos" target="_blank">{"git"}</Link> <Link href="/feed/rss" target="_blank">{"rss"}</Link>
</li>
<li>
<Link href="/artifacts/feed" target="_blank">{"rss"}</Link>
</li> </li>
<li> <li>
<button className={styles.themeButton} onClick={toggleTheme}> <button className={styles.themeButton} onClick={toggleTheme}>

13
public/key.asc Normal file
View file

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

52
utils/buildFeed.ts Normal file
View file

@ -0,0 +1,52 @@
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;
}

View file

@ -6,7 +6,8 @@ import html from "remark-html";
const root = path.join(process.cwd(), "artifacts"); 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`); const fullPath = path.join(root, dir, `${id}.md`);
// read file contents // read file contents