Skip to content

Commit

Permalink
Fix rss feed url
Browse files Browse the repository at this point in the history
  • Loading branch information
xypnox committed Sep 2, 2024
1 parent 745c7df commit f0134cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/profileLinks.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { TootFeed as TootFeedSolid } from "../components/tootfeed.tsx";
}
</div>
<div class="profile-feed">
<TootFeedSolid client:visible max={6} />
<TootFeedSolid client:only max={6} />
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/now.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { TootFeed as TootFeedSolid } from "../components/tootfeed.tsx";
<p style={{textAlign: 'center'}}>Of that which was <a href="/past">past</a>.</p>

<div class="separator">❦ </div>
<TootFeedSolid title="And some musings" description="with the curtesy of" client:visible />
<TootFeedSolid title="And some musings" description="with the curtesy of" client:only />
</main>
</Layout>

Expand Down
10 changes: 5 additions & 5 deletions src/pages/rss.xml.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import rss from "@astrojs/rss"
import { getCollection } from 'astro:content';
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";

export async function GET(context) {
const blog = await getCollection('blog');
const blog = await getCollection("blog");
return rss({
title: "Blag",
description: "To muse over the words unmusable.",
Expand All @@ -14,7 +14,7 @@ export async function GET(context) {
pubDate: post.data.date,
description: post.data.description,
image: post.data.coverImage,
link: `/blag/${post.slug}`,
link: `/blag/posts/${post.slug}`,
})),
})
});
}

0 comments on commit f0134cd

Please sign in to comment.