mirror of
https://github.com/rolfiee/wiki.git
synced 2025-06-18 11:15:33 -04:00
Make robots.txt to block duplicate pages
This commit is contained in:
parent
fed8dcf6d4
commit
81c7ddba5d
@ -11,13 +11,9 @@ sass:
|
||||
|
||||
defaults:
|
||||
- scope:
|
||||
path: ""
|
||||
path: "*.md"
|
||||
values:
|
||||
layout: wiki
|
||||
- scope:
|
||||
path: assets/js
|
||||
values:
|
||||
layout: null
|
||||
|
||||
collections:
|
||||
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