Skip to content

Commit 1d6daf6

Browse files
committed
chore: configure minimal sitemap.xml
1 parent 040d5db commit 1d6daf6

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

config/sitemap.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is generated with `rake sitemap:install`
2+
# See https://github.com/kjvarga/sitemap_generator?tab=readme-ov-file#rake-tasks
3+
4+
# Set the host name for URL creation
5+
SitemapGenerator::Sitemap.default_host = 'https://codebar.io'
6+
7+
SitemapGenerator::Sitemap.create do
8+
# Put links creation logic here.
9+
#
10+
# The root path '/' and sitemap index file are added automatically for you.
11+
# Links are added to the Sitemap in the order they are specified.
12+
#
13+
# Usage: add(path, options={})
14+
# (default options are used if you don't specify)
15+
#
16+
# Defaults: :priority => 0.5, :changefreq => 'weekly',
17+
# :lastmod => Time.now, :host => default_host
18+
#
19+
# Examples:
20+
#
21+
# Add '/articles'
22+
#
23+
# add articles_path, :priority => 0.7, :changefreq => 'daily'
24+
#
25+
# Add all articles:
26+
#
27+
# Article.find_each do |article|
28+
# add article_path(article), :lastmod => article.updated_at
29+
# end
30+
end

public/robots.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2-
#
3-
# To ban all spiders from the entire site uncomment the next two lines:
4-
# User-agent: *
5-
# Disallow: /
1+
Sitemap: https://codebar.io/sitemap.xml.gz

public/sitemap.xml.gz

328 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)