Sitemap HTML

Hello. I want to have HTML sitemap. I have a multilanguage site. So, I need sitemaps for each language.
I know the function .Site.AllPages, but how can I rander the list of links for current language? And of course, I want to have pagination (500 links per page).

I tried to use this code

  {{ range .Site.AllPages }}
					<li>
						<a href="{{ .URL }}">{{ .Title }}</a>
					</li>
  {{ end }}

but how add the WHERE Lang?

I found the code

   {{ range (.Site.Pages.ByPublishDate.Reverse) 10 }}
    					<li>
						<a href="{{ .URL }}">{{ .Title }}</a>
					</li>
  {{ end }}

Now I want to have pagination

2 Likes