mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
2700bfa4cc
refs #1833 - Refactor url generation to use a base urlJoin method - urlJoin handles slash de-duping and subdir de-duping - fixes sitemap xml option
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
var config = require('../../../config'),
|
|
utils;
|
|
|
|
utils = {
|
|
getDeclarations: function () {
|
|
var baseUrl = config.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 = utils;
|