Skip to content

Commit

Permalink
fix: path error in sample markdown code (#2401)
Browse files Browse the repository at this point in the history
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/.
  • Loading branch information
weakish authored Jan 19, 2022
1 parent 24aa324 commit da1cc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/en/guides/markdown-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down

0 comments on commit da1cc0f

Please sign in to comment.