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:
Jang Rush 2022-01-20 04:18:58 +08:00 committed by GitHub
parent 24aa3245ae
commit da1cc0fd2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
---