Flexible exception list

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-05-15 15:53:48 +04:00
parent f0e1ca0b33
commit 7aff2fd186
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1 @@
- path: "/404.html"

View File

@ -5,6 +5,9 @@ layout: null
User-agent: *
Allow: {{ site.baseurl | relative_url | uri_escape }}
Disallow: {{ "/404.html" | relative_url | uri_escape }}
Sitemap: {{ "sitemap.xml" | absolute_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 }}