Published August 24, 2022 | https://doi.org/10.59350/2fb2f-hb753

Generating a sitemap with Quarto

Sitemaps are an easy way to list all pages that a search engine should crawl and index. Quarto supports the standard, XML based Sitemap Protocol, although that fact is a bit hidden in the docs.

Quarto will automatically produce a sitemap if the website's URL is given as site-url property:

website:
  title: tarleb
  site-url: 'https://tarleb.com'
  site-path: '/'

The URL will contain a colon :, which is why the YAML value must be put in quotes.

You'll find the sitemap.xml file in your _site folder after re-rendering your pages with quarto render.

Additional details

Description

Sitemaps are an easy way to list all pages that a search engine should crawl and index. Quarto supports the standard, XML based Sitemap Protocol, although that fact is a bit hidden in the docs. Quarto will automatically produce a sitemap if the website's URL is given as site-url property: website: title: tarleb site-url: 'https://tarleb.com' site-path: '/' The URL will contain a colon :, which is why the YAML value must be put in quotes.

Identifiers

UUID
7b6162e7-1b3b-46b9-bcf3-523193e440a0
GUID
https://tarleb.com/posts/quarto-sitemap/index.html
URL
https://tarleb.com/posts/quarto-sitemap

Dates

Issued
2022-08-24T00:00:00
Updated
2022-08-24T00:00:00