Newtonian Physics Mockumentary
    Have ideas to improve npm?Join in the discussion! »

    saber-plugin-sitemap

    0.4.1 • Public • Published

    saber-plugin-sitemap

    Sitemap generator plugin for Saber.

    Install

    yarn add saber-plugin-sitemap

    Usage

    In your saber-config.yml:

    plugins:
      - resolve: saber-plugin-sitemap
        options:
          # The output path of the sitemap (optional)
          path: '/sitemap.xml'
          # Path of your custom sitemap template (optional)
          template: './sitemap.xml'

    Saber Variables

    This plugin will also inject some useful Saber variables you can use at runtime:

    import variables from 'saber/variables'
     
    variables.sitemap
    // true
     
    variables.sitemapLink
    // The link to the generated sitemap

    Options

    path

    • Type: string
    • Default: sitemap.xml

    The output path of the sitemap. output to <websiteRoot>/sitemap.xml by default.

    template

    • Type: string
    • Default: sitemap.xml

    Path of your custom sitemap template, relative path to your project root. The template should be driven by ejs template engine.

    License

    MIT © h404bi

    Website · GitHub @h404bi · Twitter @h404bi

    Install

    npm i saber-plugin-sitemap

    DownloadsWeekly Downloads

    6

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    4.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar