forked from TryGhost/Ghost
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes TryGhost#4555 - There's no easy way to declare an XSL with the node xml module, so I needed to move the declarations to both be strings - Ideally the code to serve the XSL would also be inside the sitemap module, but I think we need to refactor a bit to get there easily - Added the XSL from TryGhost#4559, with minor amends to make the tables and urls display correctly
- Loading branch information
Showing
8 changed files
with
193 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var config = require('../../config'), | ||
utils; | ||
|
||
utils = { | ||
getDeclarations: function () { | ||
var baseUrl = config.urlFor('sitemap-xsl'); | ||
baseUrl = baseUrl.replace(/^(http:|https:)/, ''); | ||
return '<?xml version="1.0" encoding="UTF-8"?>' + | ||
'<?xml-stylesheet type="text/xsl" href="' + baseUrl + 'sitemap.xsl"?>'; | ||
} | ||
}; | ||
|
||
module.exports = utils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.