feat: Update import paths for app.scss and variables.scss
This commit is contained in:
@@ -29,11 +29,11 @@ export const load: PageServerLoad = async ({ params }) => {
|
||||
title: row.title,
|
||||
image: row.image,
|
||||
date: row.updated_at.toISOString().slice(0, 10),
|
||||
link: `/post/${row.category}/${row.id}`,
|
||||
link: `/article/${row.category}/${row.id}`,
|
||||
tags: row.tags,
|
||||
}));
|
||||
const tags = await db.query("SELECT * FROM tag ORDER BY ref_count DESC");
|
||||
data.tags = tags.rows.map((row) => row.name + ":" + row.ref_count);
|
||||
const tags = await db.query("SELECT * FROM tag ORDER BY ref_count DESC LIMIT 20");
|
||||
data.tags = tags.rows.map((row) => row.name);
|
||||
} catch (e) {
|
||||
await db.rollback();
|
||||
throw error(500, e as Error);
|
||||
|
||||
Reference in New Issue
Block a user