Replies: 1 comment
-
any update on this one? :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there 👋,
For some pages I do not know when they have been modified.
So, for those pages I don't want the
<lastmod>
to appear in the sitemap.xml.But for a
Spatie\Sitemap\Tags\Url
,setLastModificationDate
expects aDateTimeInterface
as argument.Thus:
$url->setLastModificationDate(null);
breaks.Is there a way to remove
<lastmod>
from the sitemap ?Thanks a lot for your help.
Thanks a lot for the tool :)
Beta Was this translation helpful? Give feedback.
All reactions