Closed simonw closed 2 years ago
Design:
@hookspec
def sitemap_extra_paths(datasette, request):
"A list of extra paths to be added to /sitemap.xml"
Will return a list of paths (starting with /
).
Since the paths don't need to be resolved to full URLs I'm not sure if the request
parameter is needed or not. I'm going to include it just in case someone wants to do something really weird like dynamically change the sitemap based on the search engine user agent - and for consistency with the design of block_robots_extra_lines
.
Inspired by: