Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 23, 2024
2 parents 3651bb5 + d1777a8 commit 51bb144
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 346 deletions.
20 changes: 20 additions & 0 deletions docs/content/4.components/1.content-doc.md
Expand Up @@ -95,3 +95,23 @@ The `empty` slot can be used to display a default content before rendering the d
</main>
</template>
```

### Slots

```html [pages/[...slug\\].vue]
<template>
<main>
<ContentDoc>
<template v-slot="{ doc }">
<article>
<h1>{{ doc.title }}</h1>
<ContentRenderer :value="doc" />
</article>
</template>
<template #not-found>
<h1>Document not found</h1>
</template>
</ContentDoc>
</main>
</template>
```
4 changes: 2 additions & 2 deletions docs/package.json
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@iconify-json/ph": "^1.1.12",
"@iconify-json/simple-icons": "^1.1.99",
"@iconify-json/simple-icons": "^1.1.100",
"@nuxt/content": "^2.12.1",
"@nuxt/fonts": "^0.6.1",
"@nuxt/ui-pro": "^1.1.0",
Expand All @@ -28,6 +28,6 @@
"@nuxtjs/mdc": "latest"
},
"devDependencies": {
"@nuxt/devtools": "^1.1.5"
"@nuxt/devtools": "^1.2.0"
}
}

0 comments on commit 51bb144

Please sign in to comment.