Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: reorder document-driven page slots components description #2108

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/3.guide/1.writing/7.document-driven.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ To do so, you only have to create a component with the same name in your project

- `<DocumentDrivenNotFound />`{lang=html}

This component will be shown when no page has been found for the current URL.

```html [components/DocumentDrivenNotFound.vue]
<template>
<h1>Page not found</h1>
Expand All @@ -78,8 +80,6 @@ This component will be shown when there is no content for the current page, but
</template>
```

This component will be shown when no page has been found for the current URL.

## Layout binding

As the page data is available beforehand, the layout can be defined in the page front-matter:
Expand Down