Skip to content

DjebbZ/docpad-plugin-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Abandonned, here's a fork maintained by DocPad itself

https://github.com/docpad/docpad-plugin-sitemap


DocPad Sitemap Plugin

This DocPad plugin will automatically generate a valid sitemap.xml file for search engines. It's merely a wrapper for the sitemap.js library.

To learn more about sitemap.xml files, read the protocol.

Installation

For now manually copy package.json and sitemap.plugin.coffee into yoursite/node_modules/docpad-plugin-sitemap.

To be published on npm soon.

Dependencies

Usage

For each document, you can specify those metadata :

changfreq: 'always' || 'hourly' || 'daily' || 'weekly' || 'monthly' || 'yearly' || 'never' # Change frequency, defaults to 'weekly'
priority: 0.5 # value between 0.0 and 1.0, defaults to 0.5

For the whole site you'll be able to specify thanks to the docpad.cson file :

hostname: 'http://example.com' # Base url of the website, should be changed
cachetime: 600000 # Defaults to 600000 ms = 600 seconds = 5 minutes

Roadmap before considered usable

It's a work in progress for now. It has several problems, and will be considered usable when these issues are fixed :

  • Figure out how to distinguish documents from other files (layouts, assets etc.) - issue #1
  • Figure out how to write file to disc properly - issue #2
  • Figure out how to use docpad.cson option - issue #3
  • Write tests and make sure the sitemap.xml file is valid

License

The MIT License (MIT)

Copyright (c) 2012 Khalid Jebbari.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

DocPad plugin to generate a valid sitemap.xml file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published