mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
14 lines
381 B
JavaScript
14 lines
381 B
JavaScript
|
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;
|