Skip to content

Commit 7e4b8dd

Browse files
committed
Stop pinging to Google Search Engine to follow their blog:
cf. https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping
1 parent b7a1ea9 commit 7e4b8dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config/sitemap.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Set the host name for URL creation
22
SitemapGenerator::Sitemap.default_host = "https://coderdojo.jp"
33

4+
# Configure search engines to ping (exclude Google as it's deprecated)
5+
SitemapGenerator::Sitemap.ping_search_engines = true
6+
SitemapGenerator::Sitemap.search_engines = {
7+
'bing' => 'http://www.bing.com/ping?siteMap=%s',
8+
# Google を非推奨になったため除外: https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping
9+
}
10+
411
SitemapGenerator::Sitemap.create do
512
# Put links creation logic here.
613
#

0 commit comments

Comments
 (0)