feat: move posts to /posts/[slug]
This commit is contained in:
parent
fb57494c37
commit
f04b56a2f1
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ function extractDomain(url: string): string {
|
|||
'lewis m.w. <a href="mailto:lewis@wynne.rs">mail</a> <a href="https://github.com/llywelwyn">gh</a>',
|
||||
'',
|
||||
'blog',
|
||||
...sorted.map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/${post.id}">${post.data.title}</a>`),
|
||||
...sorted.map(post => `<span class="muted">${formatDate(post.data.date)}</span> <a href="/posts/${post.id}">${post.data.title}</a>`),
|
||||
'',
|
||||
'txt',
|
||||
...txtFiles.map(f => `<span class="muted">${formatDate(f.mtime)}</span> <a href="/txt/${f.name}">${f.name}</a>`),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import { getCollection, render } from 'astro:content';
|
||||
import '../styles/global.css';
|
||||
import '../../styles/global.css';
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await getCollection('posts');
|
||||
Loading…
Add table
Add a link
Reference in a new issue