feat: moved /posts/ over to /blog/ path
This commit is contained in:
parent
d1b2db73bc
commit
be89d82c17
3 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ function formatDate(date: Date): string {
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
<summary>blog</summary>
|
<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>
|
</details>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ function extractDomain(url: string): string {
|
||||||
<details open>
|
<details open>
|
||||||
<summary>blog</summary>
|
<summary>blog</summary>
|
||||||
<pre set:html={[
|
<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>`] : [])
|
...(sorted.length > 10 ? [`<a href="/blog/">+${sorted.length - 10} more</a>`] : [])
|
||||||
].join('\n')} />
|
].join('\n')} />
|
||||||
</details>
|
</details>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue