An instance method that provides SEO information about the pages created within Makeswift. You can combine the results of getSitemap
with SEO information for your hardcoded pages to create a sitemap.
getPages
method to create a sitemap instead,
see the documentation here.id
cursor of the last sitemap entry fetched."en-US"
).next-sitemap
getSitemap
with next-sitemap
, a popular Next.js library for generating sitemaps.
pathnamePrefix
option to filter results to only include pages with a pathname beginning with /blog/
.
limit
and after
field to paginate the results of getSitemap
10 entries at a time.
locale
option to fetch the sitemap for a specific locale.
getSitemap
will return the sitemap for that particular domain.
For example, if in the site settings there is an es
locale with a domain of foo.es
, then passing es
to getSitemap
will return the sitemap for foo.es
.
Version | Changes |
---|---|
v0.11.2 | Added locale option to getSitemap |
v0.10.7 | Released getSitemap |