{"id":16592664,"url":"https://github.com/prikhi/sitemap-gen","last_synced_at":"2025-10-29T10:30:35.835Z","repository":{"id":56878124,"uuid":"234825636","full_name":"prikhi/sitemap-gen","owner":"prikhi","description":"Generate XML Sitemaps \u0026 Sitemap Indexes.","archived":false,"fork":false,"pushed_at":"2022-08-17T22:41:48.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T22:30:35.324Z","etag":null,"topics":["haskell","library","sitemap","sitemap-generator","sitemap-schema","xml","xml-sitemaps","xmlgen"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/sitemap-gen","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prikhi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-19T02:05:43.000Z","updated_at":"2023-09-08T18:02:25.000Z","dependencies_parsed_at":"2022-08-20T11:40:37.564Z","dependency_job_id":null,"html_url":"https://github.com/prikhi/sitemap-gen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fsitemap-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fsitemap-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fsitemap-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fsitemap-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prikhi","download_url":"https://codeload.github.com/prikhi/sitemap-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238803519,"owners_count":19533331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","library","sitemap","sitemap-generator","sitemap-schema","xml","xml-sitemaps","xmlgen"],"created_at":"2024-10-11T23:21:52.553Z","updated_at":"2025-10-29T10:30:35.483Z","avatar_url":"https://github.com/prikhi.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitemap-gen\n\n[![sitemap-gen Build Status](https://github.com/prikhi/sitemap-gen/actions/workflows/main.yml/badge.svg)](https://github.com/prikhi/sitemap-gen/actions/workflows/main.yml)\n\n\n`sitemap-gen` is a Haskell library for generating XML sitemaps and sitemap\nindex files.\n\nIt uses the [xmlgen][xmlgen] library to generate XML that conforms to the\n[sitemaps.org][sitemap-schema] XML schema.\n\nTo use this library, build a `Sitemap` or `SitemapIndex` type and use the\nrespective `render...` functions to build the `ByteString` output:\n\n```haskell\nimport Web.Sitemap.Gen (Sitemap(..), SitemapUrl(..), renderSitemap)\n\nimport qualified Data.ByteString as BS\nimport qualified Web.Sitemap.Gen as Sitemap\n\nmySitemap :: BS.ByteString\nmySitemap =\n    let urls =\n            [ SitemapUrl\n                { sitemapLocation = \"https://mydomain.com/my/url/\"\n                , sitemapLastModified = Nothing\n                , sitemapChangeFrequency = Just Sitemap.Monthly\n                , sitemapPriority = Just 0.9\n                }\n            , SitemapUrl\n                { sitemapLocation = \"https://mydomain.com/lower/priority/\"\n                , sitemapLastModified = Nothing\n                , sitemapChangeFrequency = Just Sitemap.Yearly\n                , sitemapPriority = Just 0.4\n                }\n            ]\n    in\n    renderSitemap $ Sitemap urls\n```\n\n\n## Develop\n\nBuild the package, documentation, \u0026 tests with `stack`:\n\n```sh\nstack build --pedantic --haddock --test --file-watch\n```\n\n\n## License\n\nBSD-3, exceptions possible.\n\n\n[xmlgen]: https://hackage.haskell.org/package/xmlgen\n[sitemap-schema]: https://www.sitemaps.org/protocol.html#index\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fsitemap-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprikhi%2Fsitemap-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fsitemap-gen/lists"}