fix: fix errors and reformat code

This commit is contained in:
saicaca
2024-08-03 16:40:20 +08:00
parent 1f93499ece
commit 0ad144add3
44 changed files with 550 additions and 558 deletions

View File

@@ -9,7 +9,7 @@ export function pathsEqual(path1: string, path2: string) {
function joinUrl(...parts: string[]): string {
const joined = parts.join('/')
return joined.replace(/\/+/g, '/');
return joined.replace(/\/+/g, '/')
}
export function getPostUrlBySlug(slug: string): string {
@@ -32,4 +32,4 @@ export function getDir(path: string): string {
export function url(path: string) {
return joinUrl('', import.meta.env.BASE_URL, path)
}
}