Add robots.txt template to disallow robots

See: https://github.com/spf13/hugo/blob/master/docs/content/extras/robots-txt.md
This commit is contained in:
2016-09-21 22:25:36 +03:00
parent d3fa258e8b
commit 2696466e0e
2 changed files with 5 additions and 0 deletions

4
layouts/robots.txt Normal file
View File

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