update content
This commit is contained in:
parent
339a4cb482
commit
0f971ff30e
4 changed files with 7 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ 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/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>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const Header = () => {
|
|||
<Link href="/artifacts">{"artifacts"}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/feed" target="_blank">{"rss"}</Link>
|
||||
<Link href="/feed/rss" target="_blank">{"rss"}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<button className={styles.themeButton} onClick={toggleTheme}>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { Feed } from "feed";
|
||||
import { getArtifacts } from "utils";
|
||||
|
||||
// const SITE_URL = "http://localhost:3000";
|
||||
const SITE_URL = "https://ryanchristo.com";
|
||||
|
||||
function getAllArtifacts() {
|
||||
|
|
@ -21,9 +22,9 @@ export function buildFeed() {
|
|||
language: "en",
|
||||
favicon: `${SITE_URL}/favicon.ico`,
|
||||
feedLinks: {
|
||||
rss2: `${SITE_URL}/feed`,
|
||||
atom: `${SITE_URL}/feed/atom`,
|
||||
json: `${SITE_URL}/feed/json`,
|
||||
rss2: `${SITE_URL}/feed/rss`,
|
||||
},
|
||||
author: { name: "Ryan Christoffersen" },
|
||||
copyright: "All rights reserved",
|
||||
|
|
@ -40,9 +41,9 @@ export function buildFeed() {
|
|||
published: a.created,
|
||||
author: [{ name: a.author }],
|
||||
category: [{ name: a.category }],
|
||||
content: a.content,
|
||||
audio: a.audio,
|
||||
video: a.video,
|
||||
// content: a.content,
|
||||
// audio: a.audio,
|
||||
// video: a.video,
|
||||
copyright: "All rights reserved",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue