Skip to content

Commit

Permalink
chore: maybe fix stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 6, 2023
1 parent 2b8a274 commit 4ebe13d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/runtime/routes/sitemap.xsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ export default defineEventHandler(async (e) => {
].map(t => `<li><p>${t}</p></li>`).join('\n')

const showTips = process.dev && moduleConfig.xslTips !== false
const columns = [...moduleConfig.xslColumns!]
let columns = [...moduleConfig.xslColumns!]
if (!columns) {
columns = [
{ label: 'URL', width: '50%' },
{ label: 'Images', width: '25%', select: 'count(image:image)' },
{ label: 'Last Updated', width: '25%', select: 'concat(substring(sitemap:lastmod,0,11),concat(\' \', substring(sitemap:lastmod,12,5)),concat(\' \', substring(sitemap:lastmod,20,6)))' },
]
}

return `<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
Expand Down

0 comments on commit 4ebe13d

Please sign in to comment.