Modules
druxt-site
Site
Out-of-the-box decoupled Drupal sites with DruxtSite, wiring layout, blocks, menus and content together from one Nuxt module.
DruxtJS Site module
Out of the box Decoupled Drupal sites with Druxt.
Links
- DruxtJS: https://druxtjs.org
- Documentation: https://druxtjs.org/modules/site
- Community Discord server: https://discord.druxtjs.org
Install
$ npm install druxt-site
Usage
- Add module to
nuxt.config.js
module.exports = {
modules: ['druxt-site'],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org',
},
};
- Add the
DruxtSitecomponent to your layout:
<template>
<DruxtSite :theme="theme" />
</template>
Options
Base Druxt options
These options are available to all Druxt modules.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
endpoint | string | No | /jsonapi | JSON:API Endpoint of the Drupal installation. |
Note: The contents of this file were automatically generated from the packages/site/README.md.