forked from mirrors/hugo-tufte
feat: Add robots.txt
This commit is contained in:
parent
c6bad82e27
commit
7ad7ce22fc
1 changed files with 7 additions and 0 deletions
7
layouts/robots.txt
Normal file
7
layouts/robots.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
User-agent: *
|
||||||
|
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
|
||||||
|
Allow: /
|
||||||
|
{{- else }}
|
||||||
|
Disallow: /
|
||||||
|
{{- end }}
|
||||||
|
Sitemap: {{ "sitemap.xml" | absURL }}
|
Loading…
Reference in a new issue