gridea icon indicating copy to clipboard operation
gridea copied to clipboard

feature: add sitemap support for gridea

Open wherelse opened this issue 3 years ago • 3 comments

测试可用,可以正常生成sitemap

wherelse avatar May 21 '22 08:05 wherelse

有关于 sitemap 的作用以及目前是否依然有用的更稍微详细一点的说明吗?

EryouHao avatar May 23 '22 15:05 EryouHao

有关于 sitemap 的作用以及目前是否依然有用的更稍微详细一点的说明吗?

sitemap有利于搜索引擎对网站的抓取和收录,比如在google的search console中就可以选择添加sitemap站点地图加速抓取。 站点地图的一些介绍: https://developers.google.com/search/docs/advanced/sitemaps/overview https://www.sitemaps.org/protocol.html

虽然之前的rss的atom.xml在一定程度上能够替代sitemap的作用,但是生成的atom.xml和设置中的feed文章数量相关,如果文章数量设置较多,其文件体积也会变的非常庞大。

另外,sitemap的可选择条目比我这次提交的PR中的条目更多,如lastmodchangefreq,在gridea中的时间为创建时间,会和文章顺序关联,没有最后更新时间的选项,故未添加,更新频率每个用户也各有差异,所以未添加。

wherelse avatar May 23 '22 15:05 wherelse

This pull request resolves #606.

renbaoshuo avatar May 27 '22 04:05 renbaoshuo