File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ generate_sitemap <- function(path){
2222 sites <- Filter(function (x ){! (x %in% skiplist )}, sites )
2323
2424 # Generate sitemap.xml
25- body <- sprintf(" <url >\n <loc>https://docs.ropensci.org/%s/</loc>\n </url >" , sites )
25+ body <- sprintf(" <sitemap >\n <loc>https://docs.ropensci.org/%s/sitemap.xml </loc>\n </sitemap >" , sites )
2626 sitemap <- paste(c(' <?xml version="1.0" encoding="UTF-8"?>' ,
27- ' <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' ,
28- body , ' </urlset >' ), collapse = ' \n ' )
27+ ' <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' ,
28+ body , ' </sitemapindex >' ), collapse = ' \n ' )
2929 writeLines(sitemap , file.path(path , ' sitemap.xml' ))
3030
3131 # Generate index.html
You can’t perform that action at this time.
0 commit comments