removed the sitemap
This commit is contained in:
parent
a8a3529af7
commit
e5726d1480
3 changed files with 0 additions and 54 deletions
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -17,7 +17,6 @@ git pull'''
|
|||
steps {
|
||||
sh '''cd /var/www/ellpeck/node
|
||||
node blog.js
|
||||
node sitemap.js
|
||||
node rss.js'''
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
const {
|
||||
createSitemap
|
||||
} = require('sitemap');
|
||||
const fs = require("fs");
|
||||
|
||||
let folder = __dirname + "/../";
|
||||
console.log("Refreshing sitemap...");
|
||||
|
||||
let sitemap = createSitemap({
|
||||
hostname: 'https://ellpeck.de',
|
||||
urls: [{
|
||||
url: '/',
|
||||
priority: 0.8
|
||||
},
|
||||
{
|
||||
url: '/#projects',
|
||||
changefreq: 'monthly'
|
||||
},
|
||||
{
|
||||
url: '/#social',
|
||||
changefreq: 'yearly'
|
||||
},
|
||||
{
|
||||
url: '/#about',
|
||||
changefreq: 'monthly'
|
||||
},
|
||||
{
|
||||
url: '/#blog',
|
||||
changefreq: 'weekly',
|
||||
priority: 0.6
|
||||
},
|
||||
{
|
||||
url: '/foefrenzy',
|
||||
priority: 0.7
|
||||
},
|
||||
{
|
||||
url: '/foefrenzy/maps'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
fs.readFile(folder + "blog/posts.json", function (_, data) {
|
||||
let json = JSON.parse(data);
|
||||
|
||||
for (let post of json) {
|
||||
sitemap.add({
|
||||
url: "/blog-" + post.id
|
||||
});
|
||||
}
|
||||
|
||||
fs.writeFile(folder + "/sitemap.xml", sitemap.toXML(), function (_, _) {});
|
||||
});
|
|
@ -1 +0,0 @@
|
|||
Sitemap: https://ellpeck.de/sitemap.xml
|
Loading…
Reference in a new issue