-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ed84a8
commit 4696eec
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
permalink: /robots.txt | ||
# The robots rules | ||
--- | ||
|
||
User-agent: * | ||
|
||
# Disallow certain paths | ||
Disallow: /assets/ # 阻止访问静态文件 | ||
|
||
# Disallow Googlebot-Image from crawling images | ||
User-agent: Googlebot-Image | ||
Disallow: /img/ # 不允许爬虫访问图片目录 | ||
|
||
# Allow all crawlers to index the main content | ||
Allow: / # 允许爬虫访问主页和其他页面 | ||
|
||
# Sitemap location | ||
Sitemap: {{ '/sitemap.xml' | absolute_url }} |