Add robot.txt to exclude search engines

This commit is contained in:
Yorick Barbanneau 2018-10-18 23:39:00 +02:00
parent af76087ada
commit 31bc5b691e
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,7 @@ pygmentsUseClasses = false
theme = "mainroad" theme = "mainroad"
rssLimit = 10 rssLimit = 10
paginate = 10 paginate = 10
enableRobotsTXT = true
[taxonomies] [taxonomies]
category = "categories" category = "categories"
tag = "tags" tag = "tags"

4
layouts/robots.txt Normal file
View file

@ -0,0 +1,4 @@
User-agent: *
{{range .Pages}}
Disallow: {{.RelPermalink}} {{end}}