feat: title links on posts in lists

This commit is contained in:
2026-02-22 10:50:48 +01:00
parent 0172e468ba
commit b166dd5a81
4 changed files with 16 additions and 3 deletions

View File

@@ -251,6 +251,7 @@ describe('BlogGenerationEngine', () => {
expect(indexHtml).toContain('href="/"');
expect(indexHtml).toContain('href="/about/"');
expect(indexHtml).toContain('href="/category/news/"');
expect(indexHtml).toContain('<h2 class="post-title"><a href="/2025/03/15/hello-world">Hello World</a></h2>');
expect(indexHtml).toContain('class="blog-menu-submenu"');
const listH1Index = indexHtml.indexOf('<h1 class="archive-heading"');

View File

@@ -1017,7 +1017,7 @@ describe('PreviewServer', () => {
await server.start(0);
const html = await (await fetch(`${server.getBaseUrl()}/`)).text();
expect(html).toContain('<h2 class="post-title">Article Title</h2>');
expect(html).toContain('<h2 class="post-title"><a href="/2025/02/06/pt-1">Article Title</a></h2>');
expect(html).not.toContain('<h2 class="post-category-title">article</h2>');
});