seo: increase sitemap coverage.
Rework sitemaps to provide more coverage of the site. We want every important page on the site - including every post, tag, and wiki page - to be indexed by Google. We do this by generating sitemaps and sitemap indexes that contain links to every important page on the site.
This commit is contained in:
@@ -337,6 +337,14 @@ class PostsControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
end
|
||||
|
||||
context "with the .sitemap format" do
|
||||
should "render" do
|
||||
get posts_path(format: :sitemap)
|
||||
assert_response :success
|
||||
assert_equal(Post.count, response.parsed_body.css("urlset url loc").size)
|
||||
end
|
||||
end
|
||||
|
||||
context "with deleted posts" do
|
||||
setup do
|
||||
@post.update!(is_deleted: true)
|
||||
|
||||
Reference in New Issue
Block a user