Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple ruby on rails sitemap generator

tag: v0.1b2

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE Initial commit. August 25, 2011
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 sitemap.gemspec
README.rdoc

Sitemap

A simple ruby on rails sitemap generator.

Usage

Create a sitemap.rb file in your config directory. Paths can be indexed as follows:

Sitemap::Generator.instance.load :host => "mywebsite.com" do
  path :root, :priority => 1
  path :faq, :priority => 0.5, :change_frequency => "weekly"
  resources :activities, :params => { :format => "html" }
  resources :articles, :objects => proc { Article.published }
end

Please read the docs for a more comprehensive list of options.

Building the sitemap:

rake sitemap:generate

Ping search engines:

rake sitemap:ping

License

This package is licensed under the MIT license and/or the Creative Commons Attribution-ShareAlike.

Something went wrong with that request. Please try again.