Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 09bda1f

Browse files
authored
Merge pull request #217 from atsign-foundation/fix/robots.txt
fix: enable robots.txt in prod
2 parents e1ee5ad + 8f995bd commit 09bda1f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

config/docs/module.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ mounts:
4040
- partials/head/resource-hints.html
4141
- partials/footer/script-footer.html
4242
- index.html
43+
- robots.txt
4344
- _default/list.html
4445
- _default/single.html
4546
- source: layouts

layouts/robots.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
User-agent: *
2+
{{ if eq (.Site.BaseURL) "docs.atsign.com" -}}
3+
Allow: /
4+
{{ else -}}
5+
Disallow: /
6+
{{ end }}
7+
Sitemap: {{ "sitemap.xml" | absURL -}}

0 commit comments

Comments
 (0)