wpnuxt / wpnuxt-core

WPNuxt core module: connect Nuxt with a headless WordPress using GraphQL
https://wpnuxt.com
27 stars 2 forks source link

new ContentRender component #176

Closed vernaillen closed 3 months ago

vernaillen commented 3 months ago

Now there is just the BlockRenderer, which requires the support for gutenberg blocks to be available

We could create a new ContentRender component, which uses the BlockRenderer when the @wpnuxt/blocks module is enabled or otherwise v-sanitize="post.content"

To assist in this it could be could that the module is setting a runtimeConfig option indicating whether @wpnuxt/blocks is enabled (based on a hasNuxtModule('@wpnuxt/blocks') check in module.ts)