Skip to content

Commit 77a5b8c

Browse files
committed
chore: clean up double import
1 parent 85fc5a6 commit 77a5b8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pages/[...locale]/[blog]/[tag]/[tagName]/[...page].astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { defaultPropsAndParamsOptions, resolvePath } from "../../../../../utils/
1111
import { C } from "../../../../../configuration";
1212
import slug from "limax";
1313
import Pagination from "../../../../../components/Pagination.astro";
14-
import sluggify from "limax";
1514
1615
export const getStaticPaths = (async ({ paginate }) => {
1716
const routePattern = "[...locale]/[blog]/[...slug]";
@@ -20,7 +19,7 @@ export const getStaticPaths = (async ({ paginate }) => {
2019
const propsAndParams = i18nPropsAndParams(collection, {
2120
...defaultPropsAndParamsOptions,
2221
routePattern,
23-
generateSegments: (entry) => ({ slug: sluggify(entry.data.title) }),
22+
generateSegments: (entry) => ({ slug: slug(entry.data.title) }),
2423
});
2524
2625
const locales = propsAndParams.reduce(

0 commit comments

Comments
 (0)