dillonkearns / elm-sitemap / Sitemap

https://www.sitemaps.org/protocol.html

Including a sitemap can boost your SEO by making it easier for webcrawlers to efficiently crawl your site. It also helps web crawlers detect when a change has been made on your site faster, so changes to your site can be reflected sooner in search results.

Be sure to exclude pages from your site map that you don't want to be indexed. This is a good resource that explains which pages should be included and which should be excluded: https://blog.spotibo.com/sitemap-guide/#which-urls-should-be-put-in-a-sitemap.

It's important that you not include duplicate pages in your sitemap as this can result in a serious SEO penalty or flag your site as spam.

Here's another reference with more best practices: https://support.google.com/webmasters/answer/183668?hl=en


type alias Entry =
{ path : String
, lastMod : Maybe String 
}

The data for a single entry in your sitemap.

build : { siteUrl : String } -> List Entry -> String

Generate a String in XML format for your sitemap.