add date + author to posts + dedupe headings

This commit is contained in:
Felix Roos 2024-01-14 23:39:03 +01:00
parent 98db3d37ef
commit 79f1a863b6
13 changed files with 7 additions and 24 deletions

View File

@ -5,6 +5,7 @@ type Props = CollectionEntry<'blog'>['data'];
const { post } = Astro.props;
const { Content } = await post.render();
import { format } from 'date-fns';
---
<article
@ -12,8 +13,13 @@ const { Content } = await post.render();
>
<div class="pb-2">
<div class="md:flex justify-between">
<h1 class="mb-4" id={post.slug}>{post.title}</h1>
<h1 class="mb-4" id={post.slug}>{post.data.title}</h1>
</div>
<p class="italic p-0 m-0">
<time datetime={post.data.date.toISOString()}>
{format(post.data.date, 'MMMM yyyy')} by {post.data.author}
</time>
</p>
</div>
<div>
<Content />

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.0.2 Schwindlig
## What's Changed
- Most work done as [commits to main](https://github.com/tidalcycles/strudel/commits/2a0d8c3f77ff7b34e82602e2d02400707f367316)

View File

@ -5,8 +5,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.0.2.1 Stürmisch
## What's Changed
- Add chunk, chunkBack and iterBack by @yaxu in https://github.com/tidalcycles/strudel/pull/25

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.0.3 Maelstrom
## What's Changed
- Add chunk, chunkBack and iterBack by @yaxu in https://github.com/tidalcycles/strudel/pull/25

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.0.4 Gischt
## What's Changed
- Webaudio rewrite by @felixroos in https://github.com/tidalcycles/strudel/pull/138

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.3.0 Donauwelle
## Package Versions
- @strudel.cycles/core@0.3.1

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.4.0 Brandung
## What's Changed
- new transpiler based on acorn by @felixroos in https://github.com/tidalcycles/strudel/pull/249

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.5.0 Wirbel
## Package Versions
- @strudel.cycles/core@0.5.0

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.6.0 Zimtschnecke
## Package Versions
- @strudel.cycles/core@0.6.8

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos
---
# Release Notes v0.7.0 Zimtschnecke
## Package Versions
- @strudel.cycles/core@0.7.2

View File

@ -8,8 +8,6 @@ author: froos
import BlogVideo from '../../components/BlogVideo.astro';
# Release Notes v0.8.0 Himbeermuffin
These are the release notes for Strudel 0.8.0 aka "Himbeermuffin"!
[Go to Tidal Club Forum for this Release](https://club.tidalcycles.org/t/strudel-0-8-0-released/4769)

View File

@ -8,8 +8,6 @@ author: froos
import BlogVideo from '../../components/BlogVideo.astro';
# Release Notes v0.9.0 Bananenbrot
These are the release notes for Strudel 0.9.0 aka "Bananenbrot"!
The last release was over 11 weeks ago, so a lot of things have happened!

View File

@ -32,7 +32,6 @@ const posts = (await getCollection('blog')).sort((a, b) => compareDesc(a.data.da
<LeftSidebar currentPage={currentPage} />
</aside>
<PageContent>
<h1>Strudel Blog</h1>
{posts.map((post) => <BlogPost post={post} />)}
</PageContent>
<aside class="fixed right-0 h-full overflow-auto pr-4 pl-0 pb-16 hidden xl:block" title="Table of Contents">