Use pretty URLs for blog posts in listings
This commit is contained in:
parent
f872c83c63
commit
d83500a0c9
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ const datePrefix = `${day} ${month}. `;
|
||||||
---
|
---
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href={`/${entry.collection}/${entry.id}`}
|
href={entry.collection === "blog" ? `/${entry.id}` : `/${entry.collection}/${entry.id}`}
|
||||||
class="not-prose group relative flex flex-nowrap rounded-lg border border-black/15 px-4 py-3 pr-10 transition-colors duration-300 ease-in-out hover:bg-black/5 hover:text-black focus-visible:bg-black/5 focus-visible:text-black dark:border-white/20 dark:hover:bg-white/5 dark:hover:text-white dark:focus-visible:bg-white/5 dark:focus-visible:text-white"
|
class="not-prose group relative flex flex-nowrap rounded-lg border border-black/15 px-4 py-3 pr-10 transition-colors duration-300 ease-in-out hover:bg-black/5 hover:text-black focus-visible:bg-black/5 focus-visible:text-black dark:border-white/20 dark:hover:bg-white/5 dark:hover:text-white dark:focus-visible:bg-white/5 dark:focus-visible:text-white"
|
||||||
>
|
>
|
||||||
<div class="flex flex-1 flex-col truncate">
|
<div class="flex flex-1 flex-col truncate">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue