diff --git a/src/content/docs/en/guides/markdown-content.mdx b/src/content/docs/en/guides/markdown-content.mdx index c170d212b8a1c..1de3055335878 100644 --- a/src/content/docs/en/guides/markdown-content.mdx +++ b/src/content/docs/en/guides/markdown-content.mdx @@ -39,7 +39,7 @@ Collections use content-specfic, optimized APIs for [querying and rendering your After importing or querying Markdown files, you can write dynamic HTML templates in your `.astro` components that include frontmatter data and body content. -```md title="src/posts/great-post.md" +```md title="src/pages/posts/great-post.md" --- title: 'The greatest post of all time' author: 'Ben' @@ -50,8 +50,8 @@ Here is my _great_ post! ```astro title="src/pages/my-posts.astro" --- -import * as greatPost from '../posts/great-post.md'; -const posts = Object.values(import.meta.glob('../posts/*.md', { eager: true })); +import * as greatPost from './posts/great-post.md'; +const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true })); ---

{greatPost.frontmatter.title}

diff --git a/src/content/docs/ko/guides/cms/contentful.mdx b/src/content/docs/ko/guides/cms/contentful.mdx index 100c85cbb7440..e5a03f4960bdb 100644 --- a/src/content/docs/ko/guides/cms/contentful.mdx +++ b/src/content/docs/ko/guides/cms/contentful.mdx @@ -221,7 +221,7 @@ Contentful space의 **Content** 섹션에서 **Add Entry** 버튼을 클릭하 `BlogPost`라는 새 인터페이스를 만들어 `src/lib/` 디렉터리에 있는 `contentful.ts` 파일에 추가하세요. 이 인터페이스는 Contentful의 블로그 게시물 콘텐츠 타입 필드와 일치합니다. 이는 블로그 게시물 항목 응답의 타입을 지정하는 데 사용됩니다. -```ts title="src/lib/contentful.ts" ins=", { EntryFieldTypes }" ins={3-12} +```ts title="src/lib/contentful.ts" ins="type { EntryFieldTypes }" ins={4-13} import * as contentful from "contentful"; import type { EntryFieldTypes } from "contentful";