summaryrefslogtreecommitdiff
path: root/website/src/components/BlogFeed.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-05-12 08:33:19 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-05-12 08:33:19 +0100
commit0f75bf3443996f287b9a8a70abb0b3ac8031def8 (patch)
treec8136ceb877e6f7b0c1dc918fe5e2e3626cd5287 /website/src/components/BlogFeed.astro
parent88c6e8a6585c00f0a94e27f1351e77ef18518196 (diff)
Styling overhaul
Diffstat (limited to 'website/src/components/BlogFeed.astro')
-rw-r--r--website/src/components/BlogFeed.astro28
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>