Skip to content

Commit 82f832a

Browse files
committed
Use an absolute URL for sitemap in robots.txt.
For reasoning, see [Google's recommendations](https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt).
1 parent 63b347c commit 82f832a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ User-agent: *
66
{% for node in site.pages %}{% if node.noindex %}{% assign isset = true %}Disallow: {{ node.url }}
77
{% endif %}{% endfor %}{% if isset != true %}Disallow:
88
{% endif %}
9-
Sitemap: {{ site.baseurl }}/sitemap.xml
9+
Sitemap: {{site.url}}{{ site.baseurl }}/sitemap.xml

0 commit comments

Comments
 (0)