Skip to content

Commit

Permalink
Use byte id for links
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Oct 1, 2024
1 parent e2a1599 commit 46b0b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(main)/bytes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default async function Bytes({
<article key={byte.id}>
<Card>
<div className="w-full grid-cols-[1fr,auto] sm:grid">
<Card.Title href={`/bytes/${byte.slug}`}>
<Card.Title href={`/bytes/${byte.id}`}>
{byte.title}
</Card.Title>

Expand Down
2 changes: 1 addition & 1 deletion app/rss/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getFeed = cache(async () => {
...byte,
category: "Bytes",
date: byte.createdAt,
url: `${siteMeta.url}/bytes/${byte.slug}`,
url: `${siteMeta.url}/bytes/${byte.id}`,
})),
].sort((a, b) => b.date.getTime() - a.date.getTime())

Expand Down

0 comments on commit 46b0b83

Please sign in to comment.