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

Commit

Permalink
Merge pull request #217 from atsign-foundation/fix/robots.txt
Browse files Browse the repository at this point in the history
fix: enable robots.txt in prod
  • Loading branch information
XavierChanth authored Nov 7, 2022
2 parents e1ee5ad + 8f995bd commit 09bda1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/docs/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mounts:
- partials/head/resource-hints.html
- partials/footer/script-footer.html
- index.html
- robots.txt
- _default/list.html
- _default/single.html
- source: layouts
Expand Down
7 changes: 7 additions & 0 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
User-agent: *
{{ if eq (.Site.BaseURL) "docs.atsign.com" -}}
Allow: /
{{ else -}}
Disallow: /
{{ end }}
Sitemap: {{ "sitemap.xml" | absURL -}}

0 comments on commit 09bda1f

Please sign in to comment.