aboutsummaryrefslogtreecommitdiff
path: root/_pages/robots.txt
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-09-15 17:00:53 +0300
committerValentin Popov <info@valentineus.link>2018-09-15 17:00:53 +0300
commit085dc3feea30e838196e2aa32a1de91b5ea16021 (patch)
tree248a237c15e710a6989d47a4b08a9398d7dfd152 /_pages/robots.txt
parent862a62bc20a4e590fbb69065e80b0a4e0be8a98e (diff)
downloadpopov.link-085dc3feea30e838196e2aa32a1de91b5ea16021.tar.xz
popov.link-085dc3feea30e838196e2aa32a1de91b5ea16021.zip
Simplification of forming a file 'robots.txt'
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_pages/robots.txt')
-rw-r--r--_pages/robots.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/_pages/robots.txt b/_pages/robots.txt
index 7ad8e77..0e79b92 100644
--- a/_pages/robots.txt
+++ b/_pages/robots.txt
@@ -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 }}