mirror of
https://github.com/rvtr/wiki.git
synced 2025-06-18 11:05:39 -04:00
Make robots.txt to block duplicate pages
This commit is contained in:
parent
fed8dcf6d4
commit
81c7ddba5d
@ -11,13 +11,9 @@ sass:
|
|||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
- scope:
|
- scope:
|
||||||
path: ""
|
path: "*.md"
|
||||||
values:
|
values:
|
||||||
layout: wiki
|
layout: wiki
|
||||||
- scope:
|
|
||||||
path: assets/js
|
|
||||||
values:
|
|
||||||
layout: null
|
|
||||||
|
|
||||||
collections:
|
collections:
|
||||||
en-US:
|
en-US:
|
||||||
|
15
robots.txt
Normal file
15
robots.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /ic-IC/
|
||||||
|
{% for collection in site.collections %}
|
||||||
|
{%- unless collection.label == "ic-IC" -%}
|
||||||
|
{%- for item in collection.docs -%}
|
||||||
|
|
||||||
|
{% unless item.lang == collection.label %}Disallow: {{ item.url }}
|
||||||
|
{% endunless %}
|
||||||
|
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- endunless -%}
|
||||||
|
{%- endfor -%}
|
Loading…
Reference in New Issue
Block a user