Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add sitemap support for gridea #991

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wherelse
Copy link
Contributor

@wherelse wherelse commented May 21, 2022

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

@EryouHao
Copy link
Member

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

@wherelse
Copy link
Contributor Author

有关于 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中的时间为创建时间,会和文章顺序关联,没有最后更新时间的选项,故未添加,更新频率每个用户也各有差异,所以未添加。

@renbaoshuo
Copy link
Contributor

This pull request resolves #606.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants