From 254e9b144dc86945e73b45481dc0aea39dedef1d Mon Sep 17 00:00:00 2001 From: Kannan Suresh <61264139+kannansuresh@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:18:07 +0530 Subject: [PATCH 1/2] Update file paths in markdown content guide. (#10670) Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> --- src/content/docs/en/guides/markdown-content.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}

From 000ed9133de00d07dbc830913d56f3bc7be5f045 Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Sat, 11 Jan 2025 11:15:36 +0900 Subject: [PATCH 2/2] i18n(ko-KR): update `contentful.mdx` (#10681) Co-authored-by: ArmandPhilippot <59021693+ArmandPhilippot@users.noreply.github.com> --- src/content/docs/ko/guides/cms/contentful.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";