update content

This commit is contained in:
ryanchristo 2026-11-20 08:33:43 -08:00
parent d22eb07a55
commit 339a4cb482
No known key found for this signature in database
16 changed files with 166 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/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) => (
<html lang="en">
<head>
<link rel="alternate" type="application/rss+xml" title="rss" href="/feed" />
<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>
<ThemeContextProvider>
<main>

View file

@ -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 "
}
<a href="https://chora.studio" target="_blank">
<Link href="https://chora.studio" target="_blank">
{"Chora Studio"}
</a>
</Link>
{"."}
</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 "
}
<a href="https://theopenmachine.net" target="_blank">
<Link href="https://theopenmachine.net" target="_blank">
{"Open Machine"}
</a>
</Link>
{"."}
</p>
<hr />
@ -97,113 +99,102 @@ const HomePage = () => {
</p>
<ul>
<li>
<a
<Link
href="https://github.com/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"github"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>
<li>
<a
<Link
href="https://codeberg.org/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"codeberg"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>
{/*<li>
<a
<Link
href="https://bsky.app/profile/ryanchristo.bsky.social"
rel="noopener noreferrer"
target="_blank"
>
{"bluesky"}
</a>
</Link>
<i>{" - for research projects"}</i>
</li>*/}
{/*<li>
<a
<Link
href="https://mastodon.social/@ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"mastodon"}
</a>
</Link>
<i>{" - for research projects"}</i>
</li>*/}
<li>
<a
<Link
href="https://substack.com/@ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"substack"}
</a>
</Link>
<i>{" - for writing projects"}</i>
</li>
<li>
<a
<Link
href="https://hackmd.io/@ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"hackmd"}
</a>
</Link>
<i>{" - for collaborative notes"}</i>
</li>
{/*<li>
<a
<Link
href="https://gitlab.com/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"gitlab"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>*/}
{/*<li>
<a
<Link
href="https://tangled.org/ryanchristo.tngl.sh"
rel="noopener noreferrer"
target="_blank"
>
{"tangled"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>*/}
{/*<li>
<a
<Link
href="https://www.npmjs.com/~ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"npmjs"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>*/}
{/*<li>
<a
<Link
href="https://buf.build/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"bufbuild"}
</a>
</Link>
<i>{" - for software projects"}</i>
</li>*/}
{/*<li>
<a
<Link
href="https://medium.com/@ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"medium"}
</a>
</Link>
<i>{" - for historical content"}</i>
</li>*/}
</ul>
@ -242,6 +233,28 @@ const HomePage = () => {
}
</i>
</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>
);