fix: path error in sample markdown code (#2401)
The path denoted in the markdown sample code is src/pages/index.md Thus, to refer to a layout component in src/layouts, we should use ../layouts/ instead of ../../layouts/.
This commit is contained in:
parent
24aa3245ae
commit
da1cc0fd2b
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ Markdown pages have a special frontmatter property for `layout`. This defines th
|
|||
```markdown
|
||||
---
|
||||
# src/pages/index.md
|
||||
layout: ../../layouts/BaseLayout.astro
|
||||
layout: ../layouts/BaseLayout.astro
|
||||
title: My cool page
|
||||
draft: false
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue