65 lines
1.8 KiB
Ruby
65 lines
1.8 KiB
Ruby
# Set the host name for URL creation
|
|
SitemapGenerator::Sitemap.default_host = Rails.application.config.external_root_url
|
|
|
|
SitemapGenerator::Sitemap.create do
|
|
# Put links creation logic here.
|
|
#
|
|
# The root path '/' and sitemap index file are added automatically for you.
|
|
# Links are added to the Sitemap in the order they are specified.
|
|
#
|
|
# Usage: add(path, options={})
|
|
# (default options are used if you don't specify)
|
|
#
|
|
# Defaults: :priority => 0.5, :changefreq => 'weekly',
|
|
# :lastmod => Time.now, :host => default_host
|
|
#
|
|
# Examples:
|
|
#
|
|
# Add '/articles'
|
|
#
|
|
# add articles_path, :priority => 0.7, :changefreq => 'daily'
|
|
#
|
|
# Add all articles:
|
|
#
|
|
# Article.find_each do |article|
|
|
# add article_path(article), :lastmod => article.updated_at
|
|
# end
|
|
|
|
add(signup_path, priority: 0.9)
|
|
add(signin_path, priority: 0.9)
|
|
add(downloads_path, priority: 0.9)
|
|
add(product_jamblaster_path, priority: 0.9)
|
|
add(product_platform_path, priority: 0.9)
|
|
add(product_jamtracks_path, priority: 0.9)
|
|
add(corp_about_path, priority: 0.9)
|
|
|
|
JamTrack.all.each do |jam_track|
|
|
slug = jam_track.slug
|
|
add(individual_jamtrack_path(slug), priority:0.9)
|
|
add(individual_jamtrack_band_path(slug), priority:0.9)
|
|
end
|
|
|
|
Recording.popular_recordings.each do |recording|
|
|
add(recording_detail_path(recording.id), priority:0.8)
|
|
end
|
|
|
|
add(reset_password_path)
|
|
add(corp_news_path)
|
|
add(corp_media_center_path)
|
|
add(corp_overview_path)
|
|
add(corp_features_path)
|
|
add(corp_faqs_path)
|
|
add(corp_screenshots_path)
|
|
add(corp_photos_path)
|
|
add(corp_logos_path)
|
|
add(corp_testimonials_path)
|
|
add(corp_audio_path)
|
|
add(corp_videos_path)
|
|
add(corp_contact_path)
|
|
add(corp_privacy_path)
|
|
add(corp_terms_path)
|
|
add(corp_help_path)
|
|
add(corp_cookie_policy_path)
|
|
|
|
end
|