mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
1bd8c18a16
* moved url-utils from server to shared * updated imports of url-utils
14 lines
419 B
JavaScript
14 lines
419 B
JavaScript
const urlUtils = require('../../../shared/url-utils');
|
|
let sitemapsUtils;
|
|
|
|
sitemapsUtils = {
|
|
getDeclarations: function () {
|
|
let baseUrl = urlUtils.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;
|