feat: change article load logic

- change highlighter prism to shiki
- separate logic into several files
This commit is contained in:
2024-09-07 02:42:50 +09:00
parent 68dde60151
commit 005fd864b2
4 changed files with 59 additions and 30 deletions
+2 -2
View File
@@ -14,6 +14,6 @@ const pool = new Pool({ connectionString });
export const getConnection = () => pool;
import init from '$lib/server/database/init_db';
import init_db from '$lib/server/database/init';
import PG from '$lib/server/database';
await init(await PG(pool));
await init_db(await PG(pool));