feat: title links on posts in lists
This commit is contained in:
@@ -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"');
|
||||
|
||||
@@ -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>');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user