For example
in blog i use
{{$paginator := .Paginate (where .Data.Pages “Type” “news”) }}
{{ range $paginator.Pages }}
…
And hugo create:
news
news/page/2/,
news/page/3/
But how i can include this links (news/page/2/, etc) in sitemap.xml, because now sitemap contain only
news page.
A sitemap.xml document is to give search engines and other automated services to slurp up a listing of unique documents on a given website. Pagination on the other hand is for humans to “page” long listings in a way that is easier for our brains to understand.
Paginated directories and their URLs has no place in a sitemap.xml. It is for bots, not humans. The bots know what their doing.
Do you have a use case that runs contrary to this? I’m open to it.
Yes, thanks, after a long search on the Internet and expert advice, I found a solution that pages with pagination are really unnecessary in the site map.
In my opinion they were needed, but it turned out I was wrong