From 2f74411118c35f0c9d852966af25e04b45dd3f53 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 9 Feb 2026 00:47:32 +0300 Subject: formatting and more perf --- src/lib/utils/posts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/utils/posts.ts') diff --git a/src/lib/utils/posts.ts b/src/lib/utils/posts.ts index d0eca68..ae5cf84 100644 --- a/src/lib/utils/posts.ts +++ b/src/lib/utils/posts.ts @@ -1,4 +1,4 @@ -import type { Component } from 'svelte'; +import type { Component } from "svelte"; export interface PostMetadata { title: string; @@ -16,10 +16,10 @@ export interface PostModule { metadata: PostMetadata; } -const postLoaders = import.meta.glob('/src/posts/*.svx'); +const postLoaders = import.meta.glob("/src/posts/*.svx"); function getSlugFromPath(path: string): string { - return path.split('/').pop()?.replace('.svx', '') ?? ''; + return path.split("/").pop()?.replace(".svx", "") ?? ""; } export function getPostSlugs(): string[] { -- cgit v1.2.3