From 7fdedc276893a0a85195f3590235d23830dc8287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janis=20Daniel=20Da=CC=88hne?= <janis.daehne2@student.uni-halle.de> Date: Tue, 24 Dec 2019 14:02:10 +0100 Subject: [PATCH] - added robots and sitemap files - moved files that should only be copied to separate folder (just_copy) --- .../{static => just_copy}/about_icon.png | Bin static_pages/{static => just_copy}/favicon.png | Bin static_pages/just_copy/robots.txt | 4 ++++ static_pages/just_copy/sitemap.xml | 9 +++++++++ webpack.config.dist.js | 16 ++++++++++++---- 5 files changed, 25 insertions(+), 4 deletions(-) rename static_pages/{static => just_copy}/about_icon.png (100%) rename static_pages/{static => just_copy}/favicon.png (100%) create mode 100644 static_pages/just_copy/robots.txt create mode 100644 static_pages/just_copy/sitemap.xml diff --git a/static_pages/static/about_icon.png b/static_pages/just_copy/about_icon.png similarity index 100% rename from static_pages/static/about_icon.png rename to static_pages/just_copy/about_icon.png diff --git a/static_pages/static/favicon.png b/static_pages/just_copy/favicon.png similarity index 100% rename from static_pages/static/favicon.png rename to static_pages/just_copy/favicon.png diff --git a/static_pages/just_copy/robots.txt b/static_pages/just_copy/robots.txt new file mode 100644 index 00000000..ddbee43e --- /dev/null +++ b/static_pages/just_copy/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: /firstLoginExternalLogin.html + +Sitemap: https://yapex.informatik.uni-halle.de/sitemap.xml diff --git a/static_pages/just_copy/sitemap.xml b/static_pages/just_copy/sitemap.xml new file mode 100644 index 00000000..79a38d02 --- /dev/null +++ b/static_pages/just_copy/sitemap.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + <url> + <loc>https://yapex.informatik.uni-halle.de/</loc> + </url> + <url> + <loc>https://yapex.informatik.uni-halle.de/about/about.html</loc> + </url> +</urlset> diff --git a/webpack.config.dist.js b/webpack.config.dist.js index 7b0b656d..880c9941 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -159,17 +159,25 @@ module.exports = { }, //--- copy also static pages & assets { - from: 'static_pages/static/sha512.js', //needed for firstLoginExternalLogin - to: 'static/sha512.js', + from: 'static_pages/static/robots.txt', + to: 'robots.txt', + }, + { + from: 'static_pages/static/sitemap.xml', + to: 'sitemap.xml', }, { - from: 'static_pages/static/favicon.png', + from: 'static_pages/just_copy/favicon.png', to: 'favicon.png', }, { - from: 'static_pages/static/about_icon.png', + from: 'static_pages/just_copy/about_icon.png', to: 'about_icon.png', }, + { + from: 'static_pages/static/sha512.js', //needed for firstLoginExternalLogin + to: 'static/sha512.js', + }, //hack because react-notifications cannot properly bundled ... the icons are not displayed //TODO not working because these files are overwritten by the loader!! { -- GitLab