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

refactor: optimize lastmod as much as possible for a fixed time #26

Closed guqing closed 1 year ago

guqing commented 1 year ago

What this PR does?

优化 Sitemap 中关于文章和自定义页面的最后修改时间

how to test it? 生成 sitemap 会有缓存, 每天会重新生成一次,如果修改了文章可以重启插件让其重新生成来测试 lastmod 的值

/kind improvement

Fixes #10

优化 Sitemap 中关于文章和自定义页面的最后修改时间
guqing commented 1 year ago

BUILD FAILED in 9s 8 actionable tasks: 6 executed, 2 up-to-date

已修复单元测试 00972b2

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

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)~~ [JohnNiang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment