Skip to content

Commit

Permalink
i18n(ko-KR): update content-collections.mdx (withastro#7830)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan <[email protected]>
  • Loading branch information
jsparkdev and yanthomasdev authored Apr 12, 2024
1 parent bd21c7d commit 8643e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/ko/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ const { Content, headings } = await entry.render();

정적 웹 사이트 (Astro의 기본 동작)를 구축하는 경우 [`getStaticPaths()`](/ko/reference/api-reference/#getstaticpaths) 함수를 사용하여 빌드하는 동안 단일 `src/pages/` 컴포넌트에서 여러 페이지를 만듭니다.

콘텐츠를 쿼리하려면 `getStaticPaths()` 함수에서 [`getCollection()`](/ko/reference/api-reference/#getcollection) 함수를 호출하세요. 그런 다음 각 콘텐츠 항목의 `slug` 속성을 사용하여 새 URL 경로를 만듭니다.
[콘텐츠 또는 데이터 컬렉션을 쿼리](/ko/guides/content-collections/#컬렉션-쿼리)하려면 `getStaticPaths()`에서 `getCollection()`호출하세요. 그런 다음 각 콘텐츠 항목의 `slug` 속성 (콘텐츠 컬렉션) 또는 `id` 속성 (데이터 컬렉션)을 사용하여 새 URL 경로를 생성합니다.

```astro "{ slug: entry.slug }"
---
Expand Down

0 comments on commit 8643e66

Please sign in to comment.