From e5726d148007c0c8b441b0cc09b249b2fcf67a0a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 22 Jun 2020 00:48:03 +0200 Subject: [PATCH] removed the sitemap --- Jenkinsfile | 1 - node/sitemap.js | 52 ------------------------------------------------- robots.txt | 1 - 3 files changed, 54 deletions(-) delete mode 100644 node/sitemap.js delete mode 100644 robots.txt diff --git a/Jenkinsfile b/Jenkinsfile index 9b44f46..9f0f079 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,6 @@ git pull''' steps { sh '''cd /var/www/ellpeck/node node blog.js -node sitemap.js node rss.js''' } } diff --git a/node/sitemap.js b/node/sitemap.js deleted file mode 100644 index 7f27773..0000000 --- a/node/sitemap.js +++ /dev/null @@ -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 (_, _) {}); -}); \ No newline at end of file diff --git a/robots.txt b/robots.txt deleted file mode 100644 index cac6e4d..0000000 --- a/robots.txt +++ /dev/null @@ -1 +0,0 @@ -Sitemap: https://ellpeck.de/sitemap.xml \ No newline at end of file