API Documentation

DruxtSiteMixin

site

Modules

DruxtSiteMixin : object

Vue.js Mixin.

Registers props for use by Druxt slot theme components.

DruxtSiteNuxtModule : function

The Nuxt.js module functions.

Installs and configures all DruxtJS Site modules.

DruxtSiteMixin : object

Vue.js Mixin.

Registers props for use by Druxt slot theme components.

See: DruxtSiteMixin
Example

<template>
  <div>
    <slot v-for="region of regions" :key="region" :name="region" />
  </div>
</template>

<script>
import { DruxtSiteMixin } from 'druxt-site'

export default {
  mixins: [DruxtSiteMixin],
}
</script>

DruxtSiteNuxtModule : function

The Nuxt.js module functions.

Installs and configures all DruxtJS Site modules.

See: DruxtSiteNuxtModule
Example (nuxt.config.js)

module.exports = {
  modules: [
    'druxt-site'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}