Claude improvements

This commit is contained in:
Andras Schmelczer 2026-05-11 07:48:33 +01:00
parent a86940da30
commit df2267a968
79 changed files with 2695 additions and 1162 deletions

View file

@ -2,20 +2,44 @@
import ArticleList from '../../components/ArticleList.astro';
import TagList from '../../components/TagList.astro';
import Page from '../../layouts/Page.astro';
import { getAllTags, getPublishedPosts, yearOf } from '../../lib/site';
import {
absoluteUrl,
articlePath,
getAllTags,
getPublishedPosts,
site,
yearOf,
} from '../../lib/site';
const posts = await getPublishedPosts();
const years = [...new Set(posts.map((post) => yearOf(post.data.date)))];
const tags = getAllTags(posts);
const blogJsonLd = {
'@context': 'https://schema.org',
'@type': 'Blog',
name: `${site.name} — Articles`,
url: absoluteUrl('/articles/'),
description:
'Technical articles and notes about projects, systems, AI deployment, graphics, simulations, and tools.',
blogPost: posts.map((post) => ({
'@type': 'BlogPosting',
headline: post.data.title,
description: post.data.description,
datePublished: post.data.date.toISOString(),
url: absoluteUrl(articlePath(post)),
})),
};
---
<Page
title="Articles"
description="Technical articles and notes about projects, systems, AI deployment, graphics, simulations, and tools."
jsonLd={blogJsonLd}
>
<nav class="tag-filter" aria-label="Filter articles by tag">
<span>Filter by tag</span>
<TagList tags={tags} />
<nav id="tags" class="tag-filter" aria-label="Browse by tag">
<span>Browse by tag</span>
<TagList tags={tags} labelled={false} />
</nav>
{
@ -24,7 +48,7 @@ const tags = getAllTags(posts);
return (
<section class="archive-year" aria-labelledby={`year-${year}`}>
<h2 id={`year-${year}`}>{year}</h2>
<ArticleList posts={postsForYear} showYear />
<ArticleList posts={postsForYear} showYear={false} />
</section>
);
})