Skip to content

Commit

Permalink
i18n(ko-KR): update tutorial/4-layout/1.mdx (#9320)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
  • Loading branch information
jsparkdev and yanthomasdev committed Sep 6, 2024
1 parent 9e84bd6 commit dc32c09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/ko/tutorial/4-layouts/1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ import { Steps } from '@astrojs/starlight/components';
<h2>My awesome blog subtitle</h2>
</BaseLayout>
```

4. 브라우저 미리보기를 다시 확인하여 무엇이 변경되었거나 변경되지 _않았는지_ 확인하세요.

5. 바닥글 컴포넌트 바로 위의 `src/layouts/BaseLayout.astro``<slot />` 요소를 추가한 다음 홈 페이지의 브라우저 미리보기를 확인하고 이번에 실제로 _변경된_ 내용을 확인하세요!

```astro title="src/layouts/BaseLayout.astro" ins={18}
Expand Down Expand Up @@ -138,7 +138,7 @@ import { Steps } from '@astrojs/starlight/components';

## 직접 시도해 보기 - 레이아웃을 어디에서나 사용하세요

**리팩터링**하여 다른 페이지 (`blog.astro``about.astro`)가 새 `<BaseLayout>` 컴포넌트를 사용하여 공통 페이지 요소를 렌더링하도록 하세요.
**리팩터링**하여 다른 페이지 (`blog.astro``about.astro`)가 새 `<BaseLayout>` 컴포넌트를 사용하여 공통 페이지 요소를 렌더링하도록 하세요. (참고: BaseLayout을 사용하여 `about.astro` 페이지를 렌더링하면 이 페이지의 `<head>`에 추가된 `<style>` 태그가 손실됩니다. 사용자 정의 `<h1>` 스타일을 유지하려면 스타일 태그를 페이지 컴포넌트의 body로 이동하세요.)

다음 사항을 잊지 마세요.

Expand Down

0 comments on commit dc32c09

Please sign in to comment.