ikeikeikeike / go-sitemap-generator

go-sitemap-generator is the easiest way to generate Sitemaps in Go
https://github.com/ikeikeikeike/go-sitemap-generator
MIT License
220 stars 65 forks source link

Too many tags describing this tag. Please fix it and resubmit. #10

Closed kaihendry closed 7 years ago

kaihendry commented 7 years ago

I'm using you software to generate a video sitemap, e.g.

  <video:category>action</video:category>
  <video:category>crime</video:category>

But Google search console seems to complain when there is more than one category. https://wordpress.org/support/topic/plugin-google-xml-sitemap-for-videos-invalid-xml-error-google-webmaster-tools/ has some background to the issue.

And https://developers.google.com/webmasters/videosearch/sitemaps#video-sitemap-tag-definitions spells it out, Usually a video will belong to a single category.

The answer is probably to use tags instead of categories.

ikeikeikeike commented 7 years ago

Yes, I knew that sitemap's specification. I'm not sure yet, I'm afraid have you written inslice type into category element ? Because I've got correct result after I tried to write this code in following this README.

kaihendry commented 7 years ago

Oh yes, you're right.