diff --git a/src/components/common/SEOHead.tsx b/src/components/common/SEOHead.tsx index 10f6ab17..03c4557a 100644 --- a/src/components/common/SEOHead.tsx +++ b/src/components/common/SEOHead.tsx @@ -33,6 +33,12 @@ export const SEOHead: React.FC<{ title={title} type="application/feed+json" > + ) diff --git a/src/pages/_site/[site]/feed/index.tsx b/src/pages/_site/[site]/feed/index.tsx index ff7ce9f4..97b45d1e 100644 --- a/src/pages/_site/[site]/feed/index.tsx +++ b/src/pages/_site/[site]/feed/index.tsx @@ -33,9 +33,9 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { version: "https://jsonfeed.org/version/1.1", title: site.name, description: site.description, - icon: site.avatars?.[0], + icon: link + site.avatars?.[0], home_page_url: link, - feed_url: `${link}/feed.json`, + feed_url: `${link}/feed`, items: pages.list?.map((page: any) => ({ id: page.id, title: page.title, diff --git a/src/pages/_site/[site]/feed/comments.tsx b/src/pages/_site/[site]/feed/notifications.tsx similarity index 96% rename from src/pages/_site/[site]/feed/comments.tsx rename to src/pages/_site/[site]/feed/notifications.tsx index 9e6f787a..f524d24b 100644 --- a/src/pages/_site/[site]/feed/comments.tsx +++ b/src/pages/_site/[site]/feed/notifications.tsx @@ -27,11 +27,11 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { ctx.res.write( JSON.stringify({ version: "https://jsonfeed.org/version/1.1", - title: site.name, + title: "Notifications on " + site.name, description: site.description, - icon: site.avatars?.[0], + icon: link + site.avatars?.[0], home_page_url: link, - feed_url: `${link}/feed.json`, + feed_url: `${link}/feed/notifications`, items: notifications ?.map((notification: any) => { let key = ""