add slash behind link

Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-08-14 18:13:20 +02:00
parent 2e2aa10362
commit 4987d40678

View File

@ -15,17 +15,17 @@ const posts = await getPosts();
This makes it easy to test and develop your website before deploying it to This makes it easy to test and develop your website before deploying it to
a production environment. a production environment.
<br /> <br />
When you're ready to deploy the website on your own server, Astrotus comes When you're ready to deploy the website on your own server, Astrotus
with a production environment that requires the use of Traefik as a reverse comes with a production environment that requires the use of Traefik as a
proxy. This setup provides a secure and scalable production environment for reverse proxy. This setup provides a secure and scalable production
your website. environment for your website.
</p> </p>
<h2 class="mt-6">Posts</h2> <h2 class="mt-6">Posts</h2>
<div class="flex gap-4 mt-3 flex-wrap"> <div class="flex gap-4 mt-3 flex-wrap">
{ {
posts.length > 0 ? ( posts.length > 0 ? (
posts.map((post) => ( posts.map((post) => (
<a href={`/posts/${post.id}`}> <a href={`/posts/${post.id}/`}>
<article class="text-gray bg-gray-light px-5 py-3 rounded-md shadow-md w-64 text-center hover:-translate-y-1 transition-transform"> <article class="text-gray bg-gray-light px-5 py-3 rounded-md shadow-md w-64 text-center hover:-translate-y-1 transition-transform">
<h3>{post.title}</h3> <h3>{post.title}</h3>
{post.publishedDate && ( {post.publishedDate && (