-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I've got an ugly workaround however:
var urlset = function() {
return {
urls: site.search({per_page: 100, page: 1, all: true}).results,
urls2: site.search({per_page: 100, page: 2, all: true}).results
}
};
exports.urlset = urlset;
exports.get = {
"sitemap": function() {
response.render("system/sitemap.xml.tpl", {}, {"Content-Type": "text/xml"});
}
};<?xml version="1.0" encoding="UTF-8"?>
<pop:sitemap:urlset>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<pop:urls>
<url>
<pop:sm:url wrap="loc"/>
<pop:updated_at format="yyyy-mm-dd" wrap="lastmod" />
</url>
</pop:urls>
<pop:urls2>
<url>
<pop:sm:url wrap="loc"/>
<pop:updated_at format="yyyy-mm-dd" wrap="lastmod" />
</url>
</pop:urls2>
</urlset>
</pop:sitemap:urlset>Metadata
Metadata
Assignees
Labels
No labels