Sha256: 94719717295ad2594bc945f541f72e68a48f03da58b831c65e319859278c9339

Contents?: true

Size: 805 Bytes

Versions: 14

Compression:

Stored size: 805 Bytes

Contents

require 'rubygems'
require 'sitemap_generator'
SitemapGenerator::Sitemap.default_host = "http://PROJECT_NAME.com.br/"
SitemapGenerator::Sitemap.sitemaps_host = "http://s3-sa-east-1.amazonaws.com/PROJECT_NAME/"
SitemapGenerator::Sitemap.public_path = 'tmp/'
SitemapGenerator::Sitemap.adapter = SitemapGenerator::S3Adapter.new
SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new


SitemapGenerator::Sitemap.create do

  # add '/contato', :priority => 0.7, :changefreq => 'daily'
  add '/', :priority => 1, :changefreq => 'daily'

  # Admin::Article.find_each do |article|
  #   add noticia_path(article), :lastmod => article.updated_at
  # end

end
SitemapGenerator::Sitemap.ping_search_engines # Not needed if you use the rake tasks

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wrgem-0.0.55 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.54 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.53 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.52 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.51 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.50 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.49 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.48 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.47 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.46 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.45 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.44 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.43 lib/generators/wrstart/template/sitemap.rb
wrgem-0.0.42 lib/generators/wrstart/template/sitemap.rb