I didn’t says it like you say I did.
Google Console says there is an error at line so and so (e.g. line 392).
At these lines the lastmod date is 0001-01-01 which makes Google say this is not correct (date).
For the code I linked to the repo.
In the sitemap of course. Sorry if that wasn’t clear.
And line 392 is a lastmod date with value 0001-01-01 - as already said.
Google Console error says date is wrong.
I already said that.
I’m using this theme vanilla.
And it’s all not a big problem. I thought it could just even be a hugo bug to consider, or something new which causes that problems et cetera.
hugo new site bla
cd bla
git init
git submodule add https://github.com/rafed/BlogRa.git themes/BlogRa
echo "theme = 'BlogRa'" >> hugo.toml
hugo
cat public/sitemap.xml
Thank you very much for the insights.
The problem is that is only for categories and tags.
The posts seem to be fine without the lastmod attribute.
I don’t have an idea how to set lastmod tor e.g. tags.
Maybe I have to purge these tags, use lastmod on every post and re-add these tags later.
But this can’t be a proper approach.