1.0.1 • Published 2 years ago

@whppt/sitemaps v1.0.1

Weekly downloads
37
License
MIT
Repository
github
Last release
2 years ago

@whppt/sitemaps

npm version npm downloads License

📖 Release Notes

Table of Contents

Features

  • Sitemaps API queries.
  • Sitemaps viewing tool, available in the dashboard.

Usage

  1. Add @whppt/sitemaps dependency to your project
yarn add @whppt/sitemaps # or npm install @whppt/sitemaps
  1. Add @whppt/sitemaps to the modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    '@whppt/sitemaps',

    // With options
    [
      '@whppt/sitemaps',
      {
        /* module options */
      },
    ],
  ];
}

note: nuxt modules loads modules in a reverse order, make sure to play any whppt modules before the @whppt/nuxt module

  1. Register the serverModule with @whppt/api-express, update your ~/server/index.js file to include.
const { serverModule } = require('@whppt/sitemaps');
// require any plugins that contain their own pageTypes like so
const myPlugin = require('./path/to/my/plugin.js').default;

const options = {
  modules: {
    // any other custom modules go here..
    sitemap: { filter: serverModule },
  },
  // pageTypes is required to tell the sitemaps query about all
  // of your custom pageTypes.
  pageTypes: [myPlugin.pageType /* Any other pageTypes you want the sitemaps module to be aware of */],
};

Options

coming soon...

License

MIT License

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-rc5

3 years ago

1.0.0-rc6

3 years ago

1.0.0-rc4

3 years ago

1.0.0-rc3

4 years ago

1.0.0-rc2

4 years ago

1.0.0-rc1

4 years ago