feat: support robots.txt router#19
Merged
JohnNiang merged 1 commit intohalo-dev:mainfrom Sep 18, 2023
Merged
Conversation
guqing
requested changes
Sep 15, 2023
Member
Author
|
等一下,可能需要做一下缓存控制。测试发现robots.txt会被缓存,配置更新不及时 |
Member
Author
|
已解决,可以review了 |
guqing
requested changes
Sep 15, 2023
d4df0d0 to
0f2abfc
Compare
Member
|
/ping @halo-dev/sig-halo |
ruibaby
requested changes
Sep 18, 2023
guqing
reviewed
Sep 18, 2023
guqing
reviewed
Sep 18, 2023
guqing
reviewed
Sep 18, 2023
fix: Modify default rules chore: set default rule 当自定义规则开关关闭时,默认disallow /console 修改了代码样式细节 fix: 修复缓存导致调整robots_txt_enable失效的问题 chore: 修改缓存控制代码 docs: 修改label名 Co-authored-by: Ryan Wang <i@ryanc.cc> chore: 格式化代码 chore: 设置项改名
7067017 to
4ebb1cb
Compare
guqing
approved these changes
Sep 18, 2023
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: guqing, ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
示例站点: https://airbozh.tech/robots.txt
由于更希望以绝对地址来显示sitemap,所以规则设置中省去了sitemap的设置
统一设置为host/sitemap.xml,这与插件的sitemap路由一致
Resolve #18