How to create a index.xml (sitemap) for Quarto books? #2964
-
Hi! It seems that websites create automatically an index.xml (sitemap) for indexing purposes. For example, I have this line on my website. However, the same link isn't generated by default for books. How could I enable this feature for them? Best. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That link tag is actually to an RSS feed (not a sitemap). Quarto does create sitemaps at Perhaps that is causing the sitemap to not be generated for your book. For example in your 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 |
Beta Was this translation helpful? Give feedback.
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 thesite-url
option has been site.Perhaps that is causing the sitemap to not be generated for your book. For example in your
_quarto.yml
:should result in the generation of
sitemap.xml
in your output directory (e.g._book/sitemap.xml
).