Skip to content

Commit dca195e

Browse files
authored
Fix the robots.txt path
1 parent 1050d7a commit dca195e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/administration/search-engines-indexation.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you don't want your repository to be visible for search engines read further.
2323
## Block search engines indexation using robots.txt
2424

2525
To make Gitea serve a custom `robots.txt` (default: empty 404) for top level installations,
26-
create a file called `robots.txt` in the [`custom` folder or `CustomPath`](administration/customizing-gitea.md)
26+
create a file with path `public/robots.txt` in the [`custom` folder or `CustomPath`](administration/customizing-gitea.md)
2727

2828
Examples on how to configure the `robots.txt` can be found at [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt).
2929

docs/content/administration/search-engines-indexation.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ menu:
2222

2323
## 使用 robots.txt 阻止搜索引擎索引
2424

25-
为了使 Gitea 为顶级安装提供自定义的`robots.txt`(默认为空的 404),请在[`custom`文件夹或`CustomPath`](administration/customizing-gitea.md)中创建一个名为 `robots.txt` 的文件。
25+
为了使 Gitea 为顶级安装提供自定义的`robots.txt`(默认为空的 404),请在 [`custom`文件夹或`CustomPath`](administration/customizing-gitea.md)中创建一个名为 `public/robots.txt` 的文件。
2626

2727
有关如何配置 `robots.txt` 的示例,请参考 [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt)
2828

0 commit comments

Comments
 (0)