mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
feat: switch to rest routing on /blog
This commit is contained in:
parent
e08d747d00
commit
d35f58b3bc
4 changed files with 2 additions and 2 deletions
0
src/routes/blog/+page.server.ts
Normal file
0
src/routes/blog/+page.server.ts
Normal 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' }];
|
||||
};
|
|
@ -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';
|
Loading…
Reference in a new issue