0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 16:10:26 +03:00

Simplification of forming a file 'robots.txt'

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2018-09-15 18:00:53 +04:00
parent 862a62bc20
commit 085dc3feea
2 changed files with 1 additions and 6 deletions

View File

@ -5,9 +5,5 @@ layout: null
User-agent: *
Allow: {{ site.baseurl | relative_url | uri_escape }}
{% for link in site.data.robots_disallow %}
Disallow: {{ link.path | relative_url | uri_escape }}
{% endfor %}
Disallow: {{ "/404.html" | relative_url | uri_escape }}
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}