Skip to content

Commit

Permalink
Add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaudle committed Mar 13, 2015
1 parent 460e395 commit e12d436
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rules
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ compile '/sitemap/' do
filter :erb
end

compile '/robots/' do
filter :erb
end

compile '*' do
if item.binary?
# don’t filter binary items
Expand Down Expand Up @@ -68,6 +72,10 @@ route '/sitemap/' do
item.identifier.chop + '.xml'
end

route '/robots/' do
item.identifier.chop + '.txt'
end

route '*' do
if item.binary?
# Write item with identifier /foo/ to /foo.ext
Expand Down
1 change: 1 addition & 0 deletions content/robots.txt.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sitemap: <%= @items['/sitemap/'].path %>

0 comments on commit e12d436

Please sign in to comment.