update content

This commit is contained in:
ryanchristo 2026-11-20 09:11:13 -08:00
parent 339a4cb482
commit 0f971ff30e
No known key found for this signature in database
4 changed files with 7 additions and 6 deletions

View file

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

View file

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

View file

@ -1,6 +1,7 @@
import { Feed } from "feed"; import { Feed } from "feed";
import { getArtifacts } from "utils"; import { getArtifacts } from "utils";
// const SITE_URL = "http://localhost:3000";
const SITE_URL = "https://ryanchristo.com"; const SITE_URL = "https://ryanchristo.com";
function getAllArtifacts() { function getAllArtifacts() {
@ -21,9 +22,9 @@ export function buildFeed() {
language: "en", language: "en",
favicon: `${SITE_URL}/favicon.ico`, favicon: `${SITE_URL}/favicon.ico`,
feedLinks: { feedLinks: {
rss2: `${SITE_URL}/feed`,
atom: `${SITE_URL}/feed/atom`, atom: `${SITE_URL}/feed/atom`,
json: `${SITE_URL}/feed/json`, json: `${SITE_URL}/feed/json`,
rss2: `${SITE_URL}/feed/rss`,
}, },
author: { name: "Ryan Christoffersen" }, author: { name: "Ryan Christoffersen" },
copyright: "All rights reserved", copyright: "All rights reserved",
@ -40,9 +41,9 @@ export function buildFeed() {
published: a.created, published: a.created,
author: [{ name: a.author }], author: [{ name: a.author }],
category: [{ name: a.category }], category: [{ name: a.category }],
content: a.content, // content: a.content,
audio: a.audio, // audio: a.audio,
video: a.video, // video: a.video,
copyright: "All rights reserved", copyright: "All rights reserved",
}); });
} }