halo-dev / plugin-sitemap

Halo 2.0 的站点 Sitemap 生成插件
https://halo.run/store/apps/app-QDFMI
GNU General Public License v3.0
6 stars 6 forks source link

feat: support robots.txt router #19

Closed AirboZH closed 1 year ago

AirboZH commented 1 year ago

示例站点: https://airbozh.tech/robots.txt

由于更希望以绝对地址来显示sitemap,所以规则设置中省去了sitemap的设置 统一设置为host/sitemap.xml,这与插件的sitemap路由一致

Resolve #18

新增支持 robots.txt 路由以及编辑 robots.txt 规则
AirboZH commented 1 year ago

等一下,可能需要做一下缓存控制。测试发现robots.txt会被缓存,配置更新不及时

AirboZH commented 1 year ago

已解决,可以review了

guqing commented 1 year ago

/ping @halo-dev/sig-halo

f2c-ci-robot[bot] commented 1 year ago

[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

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/halo-dev/plugin-sitemap/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment