mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
c8119eee1f
refs #6982
14 lines
404 B
JavaScript
14 lines
404 B
JavaScript
var utils = require('../../../utils'),
|
|
sitemapsUtils;
|
|
|
|
sitemapsUtils = {
|
|
getDeclarations: function () {
|
|
var baseUrl = utils.url.urlFor('sitemap_xsl', true);
|
|
baseUrl = baseUrl.replace(/^(http:|https:)/, '');
|
|
return '<?xml version="1.0" encoding="UTF-8"?>' +
|
|
'<?xml-stylesheet type="text/xsl" href="' + baseUrl + '"?>';
|
|
}
|
|
};
|
|
|
|
module.exports = sitemapsUtils;
|