samdark/sitemap

Lastmod is the current date/time

Closed this issue · 1 comments

pjrvs commented

This makes Google think it's blackhat/spam if the lastmod date for every single post is the same date/time when the site was compiled. I can't figure out how to get it to not do that without just removing , time() from the generator.

Weird. It should be what you pass when adding items:

// add some URLs
$sitemap->addItem('http://example.com/mylink2', $postTime);