Skip to content

Commit

Permalink
feat: create display partial component
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed Mar 27, 2024
1 parent a64443f commit 3d2896b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions components/content/DisplayPartial.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script setup lang="ts">
defineProps<{
partial: string;
}>();
</script>

<template>
<ContentQuery
v-slot="{ data }"
path="_partials"
find="one"
:where="{ _partial: true, title: { $icontains: partial } }"
>
<ContentRenderer :value="data" />
</ContentQuery>
</template>
6 changes: 6 additions & 0 deletions content/10.getting-started/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ There are already many websites based on this template:
- [Nuxt Devtools](https://devtools.nuxt.com) - The documentation of `@nuxt/devtools`
- [Nuxt Studio](https://nuxt.studio) - The pro version of Nuxt Content

::display-partial
---
partial: 'Setting up your wallet'
---
::

## Features

- Powered by [Nuxt 3](https://nuxt.com)
Expand Down
9 changes: 9 additions & 0 deletions content/_partials/setting-up-your-wallet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Setting up your wallet
---

Here's how to setup your wallet, follow the instructions below:

1. Download wallet
2. ???
3. Profit

0 comments on commit 3d2896b

Please sign in to comment.