Skip to content

Commit

Permalink
Fix: sitemap url and add control on crawl base on seo index settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zft9xgy committed Jul 26, 2024
1 parent 3a67d30 commit ed14f76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/txts/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{% if index %}
User-agent: *
Allow: /
{% else %}
User-agent: *
Disallow: /
{% endif %}
Disallow: /admin/
Disallow: /static/
Sitemap: {{ domain_url }}/sitemap.txt

{% if index %}
Sitemap: https://{{ domain_url }}/sitemap.xml
{% endif %}

0 comments on commit ed14f76

Please sign in to comment.