Add robot.txt to exclude search engines
This commit is contained in:
parent
af76087ada
commit
31bc5b691e
2 changed files with 5 additions and 1 deletions
|
@ -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
4
layouts/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
User-agent: *
|
||||||
|
|
||||||
|
{{range .Pages}}
|
||||||
|
Disallow: {{.RelPermalink}} {{end}}
|
Loading…
Add table
Add a link
Reference in a new issue