Browse Source

removed the sitemap

pull/2/head
Ellpeck 4 months ago
parent
commit
e5726d1480
3 changed files with 0 additions and 54 deletions
  1. +0
    -1
      Jenkinsfile
  2. +0
    -52
      node/sitemap.js
  3. +0
    -1
      robots.txt

+ 0
- 1
Jenkinsfile View File

@@ -17,7 +17,6 @@ git pull'''
steps {
sh '''cd /var/www/ellpeck/node
node blog.js
node sitemap.js
node rss.js'''
}
}


+ 0
- 52
node/sitemap.js View File

@@ -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 (_, _) {});
});

+ 0
- 1
robots.txt View File

@@ -1 +0,0 @@
Sitemap: https://ellpeck.de/sitemap.xml

Loading…
Cancel
Save