mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 10:21:36 +01:00
Include descriptions on blog article list
This commit is contained in:
@@ -13,17 +13,18 @@ const sortedArticles = allArticles.sort((a, b) => {
|
||||
title="Blog"
|
||||
description="Friendly technical articles with a focus on web and GNU/Linux topics."
|
||||
>
|
||||
<ul>
|
||||
{
|
||||
sortedArticles.map(({ id, data: { title, pubDate } }) => (
|
||||
<li>
|
||||
<Date date={pubDate} />
|
||||
<span>»</span>
|
||||
<a class="text-blue-800 hover:no-underline" href={`/blog/${id}`}>
|
||||
{title}
|
||||
</a>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
{
|
||||
sortedArticles.map(({ id, data: { title, pubDate, description } }) => (
|
||||
<article class="mt-8 flex flex-col gap-2 first:mt-0">
|
||||
<Date date={pubDate} />
|
||||
<a
|
||||
class="max-w-fit text-blue-800 hover:no-underline"
|
||||
href={`/blog/${id}`}
|
||||
>
|
||||
{title}
|
||||
</a>
|
||||
<p class="not-prose">{description}</p>
|
||||
</article>
|
||||
))
|
||||
}
|
||||
</PageLayout>
|
||||
|
||||
Reference in New Issue
Block a user