Skip to content

Commit

Permalink
docs: reorder document-driven page slots components description (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaelBonnafous committed Jun 27, 2023
1 parent c2d98e3 commit b96ae30
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b96ae30

Please sign in to comment.