Sha256: 2d2567347554e3a49c35551e0eefc35f410a401e2ad181c12a32ea6437cce129

Contents?: true

Size: 679 Bytes

Versions: 10

Compression:

Stored size: 679 Bytes

Contents

xml.instruct!
 
xml.urlset "xmlns" => "http://www.google.com/schemas/sitemap/0.84" do
  xml.url do
    xml.loc         "#{home_url}"
    xml.lastmod     w3c_date(Time.now)
    xml.changefreq  "hourly"
  end
  
  @users.find_each do |user|
    xml.url do
      xml.loc         "#{home_url}#{user.login_slug}"  
      xml.lastmod     w3c_date(user.updated_at ||  Time.now)
      xml.changefreq  "weekly"
      xml.priority    0.7
    end
  end  

  @posts.find_each do |post|
    xml.url do
      xml.loc         user_post_url post['login_slug'], post.id
      xml.lastmod     w3c_date(post.published_at)
      xml.changefreq  "weekly"
      xml.priority    0.6
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 app/views/sitemap/index.xml.builder
community_engine-3.0.0 app/views/sitemap/index.xml.builder
community_engine-2.3.2 app/views/sitemap/index.xml.builder
community_engine-2.3.1 app/views/sitemap/index.xml.builder
community_engine-2.3.0 app/views/sitemap/index.xml.builder
community_engine-2.1.0 app/views/sitemap/index.xml.builder
community_engine-2.0.0 app/views/sitemap/index.xml.builder
community_engine-2.0.0.beta3 app/views/sitemap/index.xml.builder
community_engine-2.0.0.beta2 app/views/sitemap/index.xml.builder
community_engine-2.0.0.beta1 app/views/sitemap/index.xml.builder