Skip to content

Commit

Permalink
Merge branch 'main' into markdown-content
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparkdev authored Jan 11, 2025
2 parents fd3b682 + 000ed91 commit 20ece81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/en/guides/markdown-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }));
---
<p>{greatPost.frontmatter.title}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ko/guides/cms/contentful.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 20ece81

Please sign in to comment.