Skip to content

How to create a index.xml (sitemap) for Quarto books? #2964

Answered by dragonstyle
maikol-solis asked this question in Q&A
Discussion options

You must be logged in to vote

That link tag is actually to an RSS feed (not a sitemap). Quarto does create sitemaps at sitemap.xml in the root of your site, but only if the site-url option has been site.

Perhaps that is causing the sitemap to not be generated for your book. For example in your _quarto.yml:

book:
  title: "Book"
  author: "Jane Doe"
  date: "10/20/2022"
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd
  site-url: https://www.example.com

should result in the generation of sitemap.xml in your output directory (e.g. _book/sitemap.xml).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maikol-solis
Comment options

Answer selected by maikol-solis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants