diff options
Diffstat (limited to 'website/src/components/BlogFeed.astro')
| -rw-r--r-- | website/src/components/BlogFeed.astro | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/website/src/components/BlogFeed.astro b/website/src/components/BlogFeed.astro index b6f9d55..c507d69 100644 --- a/website/src/components/BlogFeed.astro +++ b/website/src/components/BlogFeed.astro @@ -54,23 +54,19 @@ const canonicalBlogUrl = new URL('blog', Astro.site) This blog is written by <a class="p-author h-card" href="/">Joe Carstairs</a> </p> - <p> + <p hidden> <a class="u-url" href={canonicalBlogUrl}>Permalink</a> </p> </aside> - <ul> - { distinctYears.map(year => ( - <li> - {year} - <ul> - { posts.filter(matchesYear(year)).sort(sortByPubDateDescending).map(post => ( - <li class="h-entry"> - <a class="u-url p-name" href={`/blog/${post.slug}`}>{post.data.title}</a> - </li> - )) } - </ul> - </li> - )) } - </ul> -</section>
\ No newline at end of file + { distinctYears.map(year => ( + <h3>{year}</h3> + <ul> + { posts.filter(matchesYear(year)).sort(sortByPubDateDescending).map(post => ( + <li class="h-entry"> + <a class="u-url p-name" href={`/blog/${post.slug}`}>{post.data.title}</a> + </li> + )) } + </ul> + )) } +</section> |
