Skip to content

Commit 60fc64b

Browse files
Adds support for sitemap and robots.txt (alshedivat#337)
* Adds support for sitemap * Adds support for robots.txt
1 parent 8fe464d commit 60fc64b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ group :jekyll_plugins do
77
gem 'jekyll-paginate-v2'
88
gem 'jekyll-scholar'
99
gem 'jekyll-twitter-plugin'
10+
gem 'jekyll-sitemap'
1011
gem 'jemoji'
1112
gem 'unicode_utils'
1213
gem 'webrick'

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ plugins:
140140
- jekyll-paginate-v2
141141
- jekyll/scholar
142142
- jekyll-twitter-plugin
143+
- jekyll-sitemap
143144
- jemoji
144145

145146
# Extras

robots.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
permalink: /robots.txt
3+
---
4+
User-agent: *
5+
Disallow:
6+
7+
Sitemap: {{ site.baseurl | prepend: site.url }}/sitemap.xml

0 commit comments

Comments
 (0)