mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +01:00
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