mirror of https://github.com/halo-dev/halo
Support disable spider.
parent
9342fa7294
commit
1c1030fb67
|
@ -17,7 +17,7 @@ public enum OtherProperties implements PropertyEnum {
|
|||
/**
|
||||
* 是否禁止爬虫
|
||||
*/
|
||||
SPIDER_DISABLE("spider_disable",Boolean.class,"false");
|
||||
SPIDER_DISABLED("spider_disabled",Boolean.class,"false");
|
||||
|
||||
private final String value;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<#if options.spider_disable!false>
|
||||
<#if options.spider_disabled!false>
|
||||
User-agent: /
|
||||
Disallow: /
|
||||
<#else>
|
||||
|
|
Loading…
Reference in New Issue