nextjs-particlex-theme / particlex

一个基于 next.js 的博客框架,可以从任意基于Markdown的博客迁移,支持 mdx。使用 SSG 模式输出,无后端需求。
https://nextjs-particlex-theme.github.io/
3 stars 0 forks source link

Automatically generate a sitemap. #26

Open IceOfSummer opened 2 weeks ago

IceOfSummer commented 2 weeks ago

If user use git as markdown files storage, we could generate a sitemap for them.

To enhance performance, we need to commit certain files to the user's Git repo. When we first generate the sitemap, we will create a file in the user's repository that records the last modified time of the file(For first generate, all the last modified time will be set to 'today').

When user commit to their repo, we will traversal all the changed file and update the 'last modified time' file. Finally, we can generate our sitemap by this file.

IceOfSummer commented 1 week ago

See: nextjs-particlex-theme/generate-sitemap