feat: moved /posts/ over to /blog/ path

This commit is contained in:
Lewis Wynne 2026-01-23 05:42:37 +00:00
parent d1b2db73bc
commit be89d82c17
3 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ function formatDate(date: Date): string {
<details open>
<summary>blog</summary>
<pre set:html={sorted.map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/posts/${post.id}">${post.data.title}</a>`).join('\n')} />
<pre set:html={sorted.map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/blog/${post.id}">${post.data.title}</a>`).join('\n')} />
</details>
</body>
</html>

View file

@ -75,7 +75,7 @@ function extractDomain(url: string): string {
<details open>
<summary>blog</summary>
<pre set:html={[
...sorted.slice(0, 10).map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/posts/${post.id}">${post.data.title}</a>`),
...sorted.slice(0, 10).map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/blog/${post.id}">${post.data.title}</a>`),
...(sorted.length > 10 ? [`<a href="/blog/">+${sorted.length - 10} more</a>`] : [])
].join('\n')} />
</details>