Sitemap

A sitemap is a list of pages of a website. Structured listings of a site’s pages help with search engine optimization, providing a link for web crawlers such as search engines to follow.

Settings

Set the default values for change frequency and priority, and the name of the generated file, in config/_default/hugo.toml.

See the Sitemap reference page for all available values.

hugo.toml
[sitemap]
  changefreq = "monthly"
  disable = false
  filename = "sitemap.xml"
  priority = 0.5

Generated files

Thulite SEO generates the following sitemap.xml — for example:

sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <sitemap>
      <loc>https://seo.thulite.io/en/sitemap.xml</loc>
      <lastmod>2023-09-07T17:19:07+02:00</lastmod>
   </sitemap>
   <sitemap>
      <loc>https://seo.thulite.io/de/sitemap.xml</loc>
      <lastmod>2023-09-07T16:04:48+02:00</lastmod>
   </sitemap>
   <sitemap>
      <loc>https://seo.thulite.io/nl/sitemap.xml</loc>
   </sitemap>
</sitemapindex>

Disable sitemap

To disable the sitemap (applies to all pages unless overridden in the frontmatter of a page), set sitemap.disable = true in config/_default/hugo.toml:

hugo.toml
[sitemap]
  disable = true

Exclude a page

To exclude a page from the sitemap, add to the frontmatter of the page:

---
sitemap:
  disable: true
---

Resources