mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
refactor: rename functions
This commit is contained in:
parent
ca1abd28c1
commit
f5526f8622
17 changed files with 46 additions and 49 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import Comments from '@/components/Comments/index.astro'
|
||||
import PostTime from '@/components/PostTime.astro'
|
||||
import { generateMultiLangPostPaths } from '@/i18n/route'
|
||||
import { getMultiLangPostRoutes } from '@/i18n/route'
|
||||
import Layout from '@/layouts/Layout.astro'
|
||||
import { checkSlugDuplication } from '@/utils/content'
|
||||
import { generateDescription } from '@/utils/description'
|
||||
|
@ -15,7 +15,7 @@ export async function getStaticPaths() {
|
|||
throw new Error(`Slug conflicts found:\n${duplicates.join('\n')}`)
|
||||
}
|
||||
|
||||
return generateMultiLangPostPaths(posts)
|
||||
return getMultiLangPostRoutes(posts)
|
||||
}
|
||||
|
||||
const { lang } = Astro.params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue