From bbbaffcc0d4dbabeab07bfa496399ba16d16d1e4 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Fri, 27 Jan 2023 19:13:14 +0800 Subject: [PATCH] set supprt for automatic heading permalink --- enhanced/robots-policy.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/enhanced/robots-policy.md b/enhanced/robots-policy.md index 61f5da3..b0e5ce8 100644 --- a/enhanced/robots-policy.md +++ b/enhanced/robots-policy.md @@ -10,7 +10,6 @@ ph-Bookshelf 提供了 `site.robots` 配置节点,可以允许站点管理员 支持设置值为 `allow` | `deny` | `custom` | `file`,或其它任何值。 -{ #allow } ## allow 当设置为 **`allow`** 时,将设置 robots.txt 为以下内容,这将允许任何爬虫访问网站的任何页面。 @@ -22,7 +21,6 @@ User-agent: * Allow: / ``` -{ #deny } ## deny 当设置为 **`deny`** 时,将设置 robots.txt 为以下内容,这将允许任何爬虫访问网站的任何页面。 @@ -32,7 +30,6 @@ User-agent: * Allow: / ``` -{ #file } ## custom / file 当设置为 **`custom`** 或是 **`file`** 时,ph-Bookshelf 将会使用站点数据根目录中的 `robots.txt` 文件作为站点 robots.txt。 @@ -40,9 +37,8 @@ Allow: / > 如果你的数据目录中没有这个文件,那么将会不产生任何内容。 > 除非你的 PHP 的配置文件中 `display_error=On`:页面将输出 PHP 错误。 -{ #others } ## 其它任何值 当填入的值不为以上任何值时,**ph-Bookshelf** 将会把填入的值作为 robots.txt 的内容输出。 -因此,你可以使用 `` 直接在这里填入你想要设置的 robots.txt 内容。虽然我们仍然推荐使用 [`file`](#file) 方式而非这样的方式。 +因此,你可以使用 `` 直接在这里填入你想要设置的 robots.txt 内容。虽然我们仍然推荐使用 [`file`](#custom--file) 方式而非这样的方式。