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 request: add an option to treat absent LASTMOD in sitemap. #146

Open
pogorv12 opened this issue Sep 3, 2024 · 0 comments
Open

Comments

@pogorv12
Copy link

pogorv12 commented Sep 3, 2024

Hello!

I would like to ask you to add an option to treat absence of LASTMOD value in the sitemap file when the LASTMODE option parameter is set.

At the current moment, all such cases are dropping off from the processing because of (line 314):
if (site.lastmod === undefined) return false;

I ask you to add something like
if (site.lastmod === undefined && this.includeNoLastmod === true) return true;
before the line 314.

This option is valuable in case when entities with LASTMOD and WITHOUT LASTMODE are processing simultaneously.

Thank you.

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

No branches or pull requests

1 participant