Skip to content

[chore] Add “lastmod” to sitemap generation #1579

@stronk7

Description

@stronk7

What do we need to do?

Lately I’ve been working with some sitemap-enabled crawlers and one of the techniques used often to avoid having to crawl every single page/etag is as simple as adding the “lastmod” information to every sitemap entry.

And it seems that Docusaurus supports it pretty well since version 3.2:

https://docusaurus.io/blog/releases/3.2#sitemap-lastmod

The datetime defaults to the datetime of the last commit of the file, not the build date. And that’s perfect.

I’d recommend to add it ASAP, it’s just a setting in config. And I’m sure that will help, in fact I’m right now building one of those sitemap-based crawlers for a project…and can test it immediately.

Ciao :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions