feat: switch to rest routing on /blog

This commit is contained in:
Youwen Wu 2024-04-07 15:09:39 -07:00
parent e08d747d00
commit d35f58b3bc
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
4 changed files with 2 additions and 2 deletions

View file

View file

@ -1,5 +1,5 @@
import type { EntryGenerator } from './$types';
export const entries: EntryGenerator = () => {
return [{ year: '2024', slug: 'test-post' }];
return [{ slug: '2024/test-post' }];
};

View file

@ -1,4 +1,4 @@
import type { PageLoad } from './$types.js';
import type { PageLoad } from '../[year]/[slug]/$types.js';
import { unified } from 'unified';
import rehypeKatex from 'rehype-katex';
import rehypeStringify from 'rehype-stringify';