Compare commits

..

No commits in common. "8439d3444f803573cd625627a8387fb938c42dc0" and "fea37e2f597247b89a93643d051b4feee3e3f36b" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export default defineSitemapEventHandler(() => {
const pages = db.select({ path: explorerContentTable.path, lastMod: explorerContentTable.timestamp, navigable: explorerContentTable.navigable, private: explorerContentTable.private }).from(explorerContentTable).all();
return pages.filter(e => e.navigable && !e.private && e.path.split('/').map((_, i, a) => a.slice(0, i).join('/')).every(p => !pages.find(_p => _p.path === p)?.private)).map(e => ({
loc: `/explore/${encodeURIComponent(e.path)}`,
loc: `/explore/${e.path}`,
lastmod: e.lastMod,
})) satisfies SitemapUrlInput[];
})