wip: tried approach from https://andrewstiefel.com/style-atom-xsl/ to style feed for browser, but it didn't work straight away and i gave up

This commit is contained in:
Joe Mulvaney 2023-07-09 16:53:37 +00:00
parent 78565de602
commit 3c581c25e8
1 changed files with 6 additions and 1 deletions

View File

@ -24,5 +24,10 @@ module.exports = (links, tags, feedData) => {
feed.item(itemOptions)
})
return feed.xml({indent: ' '})
const feedString = feed.xml({indent: ' '})
feedLines = feedString.split('\n')
feedLines.splice(1, 0, `<?xml-stylesheet href="feed.xsl" type="text/xsl"?>`)
return feedLines.join('\n')
}