diff --git a/src/app/blog/crafting-a-design-system-for-a-multiplanetary-future/page.mdx b/src/app/blog/crafting-a-design-system-for-a-multiplanetary-future/page.mdx index d456268..a1106e7 100644 --- a/src/app/blog/crafting-a-design-system-for-a-multiplanetary-future/page.mdx +++ b/src/app/blog/crafting-a-design-system-for-a-multiplanetary-future/page.mdx @@ -3,7 +3,7 @@ import Image from 'next/image' import designSystem from './planetaria-design-system.png' export const article = { - author: 'Adam Wathan', + author: 'Tony Grosinger', date: '2022-09-05', title: 'Crafting a design system for a multiplanetary future', description: diff --git a/src/app/blog/introducing-animaginary/page.mdx b/src/app/blog/introducing-animaginary/page.mdx index 51398fb..9e20875 100644 --- a/src/app/blog/introducing-animaginary/page.mdx +++ b/src/app/blog/introducing-animaginary/page.mdx @@ -1,7 +1,7 @@ import { ArticleLayout } from '@/components/ArticleLayout' export const article = { - author: 'Adam Wathan', + author: 'Tony Grosinger', date: '2022-09-02', title: 'Introducing Animaginary: High performance web animations', description: diff --git a/src/app/blog/rewriting-the-cosmos-kernel-in-rust/page.mdx b/src/app/blog/rewriting-the-cosmos-kernel-in-rust/page.mdx index 93d4767..6ed6022 100644 --- a/src/app/blog/rewriting-the-cosmos-kernel-in-rust/page.mdx +++ b/src/app/blog/rewriting-the-cosmos-kernel-in-rust/page.mdx @@ -1,7 +1,7 @@ import { ArticleLayout } from '@/components/ArticleLayout' export const article = { - author: 'Adam Wathan', + author: 'Tony Grosinger', date: '2022-07-14', title: 'Rewriting the cosmOS kernel in Rust', description: diff --git a/src/app/feed.xml/route.ts b/src/app/feed.xml/route.ts index 1adbcc9..269dd00 100644 --- a/src/app/feed.xml/route.ts +++ b/src/app/feed.xml/route.ts @@ -2,6 +2,18 @@ import assert from 'assert'; import * as cheerio from 'cheerio'; import { Feed } from 'feed'; +interface Author { + name: string; + email: string; +} + +const authors: Record = { + 'Tony Grosinger': { + name: 'Tony Grosinger', + email: 'tony@grosinger.net', + }, +}; + export async function GET(req: Request) { let siteUrl = process.env.NEXT_PUBLIC_SITE_URL; @@ -9,15 +21,10 @@ export async function GET(req: Request) { throw Error('Missing NEXT_PUBLIC_SITE_URL environment variable'); } - let author = { - name: 'Spencer Sharp', - email: 'spencer@planetaria.tech', - }; - let feed = new Feed({ - title: author.name, - description: 'Your blog description', - author, + title: 'West Sound Community Hall', + description: + 'History, Announcements, and more from the West Sound Hall and Community Club.', id: siteUrl, link: siteUrl, image: `${siteUrl}/favicon.ico`, @@ -43,6 +50,7 @@ export async function GET(req: Request) { let article = $('article').first(); let title = article.find('h1').first().text(); let date = article.find('time').first().attr('datetime'); + let author = article.find('#byline').first().text().slice(3); // Remove "by " from beginning let content = article.find('[data-mdx-content]').first().html(); assert(typeof title === 'string'); @@ -54,8 +62,8 @@ export async function GET(req: Request) { id: publicUrl, link: publicUrl, content, - author: [author], - contributor: [author], + author: [authors[author]], + contributor: [authors[author]], date: new Date(date), }); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e43dae3..0e0b420 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -7,12 +7,12 @@ import '@/styles/tailwind.css' export const metadata: Metadata = { title: { - template: '%s - Spencer Sharp', + template: '%s - West Sound Hall', default: - 'Spencer Sharp - Software designer, founder, and amateur astronaut', + 'West Sound Hall - A community space on Orcas Island', }, description: - 'I’m Spencer, a software designer and entrepreneur based in New York City. I’m the founder and CEO of Planetaria, where we develop technologies that empower regular people to explore space on their own terms.', + 'WestSound Community Hall, located at 884 Deer Harbor Road in the hamlet of West Sound, has served as a public assembly hall since it was built by volunteers in 1902.', alternates: { types: { 'application/rss+xml': `${process.env.NEXT_PUBLIC_SITE_URL}/feed.xml`, diff --git a/src/components/ArticleLayout.tsx b/src/components/ArticleLayout.tsx index 923cf96..fd18c26 100644 --- a/src/components/ArticleLayout.tsx +++ b/src/components/ArticleLayout.tsx @@ -58,6 +58,7 @@ export function ArticleLayout({ {formatDate(article.date)} + by {article.author} {children} diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index a292791..f74a75a 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -32,8 +32,7 @@ export function Footer() { Club

- © {new Date().getFullYear()} Spencer Sharp. All rights - reserved. + © {new Date().getFullYear()} West Sound Community Club. All rights reserved.