Skip to content

Commit 12a95c8

Browse files
committed
Add sitemap and robots.txt for better index on Web
1 parent 66d1a9e commit 12a95c8

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ source "https://rubygems.org"
33
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
44

55
gem 'jekyll'
6+
7+
group :jekyll_plugins do
8+
gem 'jekyll-sitemap'
9+
10+
# No need this gem because we build by GitHub Actions and
11+
# serve the built results (static files) on GitHub Pages.
12+
# gem 'github-pages'
13+
end

Gemfile.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ GEM
1212
ffi (1.15.5)
1313
forwardable-extended (2.6.0)
1414
google-protobuf (3.21.12)
15+
google-protobuf (3.21.12-x86_64-linux)
1516
http_parser.rb (0.8.0)
1617
i18n (1.12.0)
1718
concurrent-ruby (~> 1.0)
@@ -33,6 +34,8 @@ GEM
3334
webrick (~> 1.7)
3435
jekyll-sass-converter (3.0.0)
3536
sass-embedded (~> 1.54)
37+
jekyll-sitemap (1.4.0)
38+
jekyll (>= 3.7, < 5.0)
3639
jekyll-watch (2.2.1)
3740
listen (~> 3.0)
3841
kramdown (2.4.0)
@@ -68,6 +71,7 @@ PLATFORMS
6871

6972
DEPENDENCIES
7073
jekyll
74+
jekyll-sitemap
7175

7276
BUNDLED WITH
73-
2.4.1
77+
2.3.26

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
url: "https://map.coderdojo.jp"
33
baseurl: "/" # the subpath of your site, e.g. /blog
44

5+
# Build settings
6+
plugins:
7+
- jekyll-sitemap # This must be LAST to include contents generated by gems above
8+
59
exclude:
610
- README.md
711
- LICENSE.md

robots.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See http://www.robotstxt.org/robotstxt.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+
Allow: /
6+
7+
Sitemap: https://map.coderdojo.jp/sitemap.xml

0 commit comments

Comments
 (0)