Simplification of forming a file 'robots.txt'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
862a62bc20
commit
085dc3feea
@ -1 +0,0 @@
|
|||||||
- path: "/404.html"
|
|
@ -5,9 +5,5 @@ layout: null
|
|||||||
|
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: {{ site.baseurl | relative_url | uri_escape }}
|
Allow: {{ site.baseurl | relative_url | uri_escape }}
|
||||||
|
Disallow: {{ "/404.html" | relative_url | uri_escape }}
|
||||||
{% for link in site.data.robots_disallow %}
|
|
||||||
Disallow: {{ link.path | relative_url | uri_escape }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}
|
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}
|
||||||
|
Loading…
Reference in New Issue
Block a user