Compare commits

..

No commits in common. "0f971ff30e4652d476f54f54b05be197ac060e1c" and "d22eb07a55424326ab10684638e257dac29ea13b" have entirely different histories.

16 changed files with 264 additions and 167 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -7,11 +7,6 @@ import "./globals.css";
const Layout = ({ children }: any) => (
<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>
<ThemeContextProvider>
<main>

View file

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

View file

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

View file

@ -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 = () => {
<div className={styles.footer}>
<ul>
<li>
<Link href="https://git.ryanchristo.com/explore/repos" target="git">{"git"}</Link>
<a
href="https://github.com/ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"github"}
</a>
</li>
<li>
<Link href="/artifacts/feed" target="_blank">{"rss"}</Link>
</li>
<li>
<Link href="/key.asc" target="_blank">{"pgp"}</Link>
<a
href="https://substack.com/@ryanchristo"
rel="noopener noreferrer"
target="_blank"
>
{"substack"}
</a>
</li>
</ul>
</div>

View file

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

View file

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

View file

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

View file

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