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 { post } = Astro.props;
const { Content } = await post.render(); const { Content } = await post.render();
import { format } from 'date-fns';
--- ---
<article <article
@ -12,8 +13,13 @@ const { Content } = await post.render();
> >
<div class="pb-2"> <div class="pb-2">
<div class="md:flex justify-between"> <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> </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>
<div> <div>
<Content /> <Content />

View File

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

View File

@ -5,8 +5,6 @@ tags: ['meta']
author: froos author: froos
--- ---
# Release Notes v0.0.2.1 Stürmisch
## What's Changed ## What's Changed
- Add chunk, chunkBack and iterBack by @yaxu in https://github.com/tidalcycles/strudel/pull/25 - 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 author: froos
--- ---
# Release Notes v0.0.3 Maelstrom
## What's Changed ## What's Changed
- Add chunk, chunkBack and iterBack by @yaxu in https://github.com/tidalcycles/strudel/pull/25 - 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 author: froos
--- ---
# Release Notes v0.0.4 Gischt
## What's Changed ## What's Changed
- Webaudio rewrite by @felixroos in https://github.com/tidalcycles/strudel/pull/138 - Webaudio rewrite by @felixroos in https://github.com/tidalcycles/strudel/pull/138

View File

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

View File

@ -6,8 +6,6 @@ tags: ['meta']
author: froos author: froos
--- ---
# Release Notes v0.4.0 Brandung
## What's Changed ## What's Changed
- new transpiler based on acorn by @felixroos in https://github.com/tidalcycles/strudel/pull/249 - 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 author: froos
--- ---
# Release Notes v0.5.0 Wirbel
## Package Versions ## Package Versions
- @strudel.cycles/core@0.5.0 - @strudel.cycles/core@0.5.0

View File

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

View File

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

View File

@ -8,8 +8,6 @@ author: froos
import BlogVideo from '../../components/BlogVideo.astro'; import BlogVideo from '../../components/BlogVideo.astro';
# Release Notes v0.8.0 Himbeermuffin
These are the release notes for Strudel 0.8.0 aka "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) [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'; import BlogVideo from '../../components/BlogVideo.astro';
# Release Notes v0.9.0 Bananenbrot
These are the release notes for Strudel 0.9.0 aka "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! 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} /> <LeftSidebar currentPage={currentPage} />
</aside> </aside>
<PageContent> <PageContent>
<h1>Strudel Blog</h1>
{posts.map((post) => <BlogPost post={post} />)} {posts.map((post) => <BlogPost post={post} />)}
</PageContent> </PageContent>
<aside class="fixed right-0 h-full overflow-auto pr-4 pl-0 pb-16 hidden xl:block" title="Table of Contents"> <aside class="fixed right-0 h-full overflow-auto pr-4 pl-0 pb-16 hidden xl:block" title="Table of Contents">