From 2ae038695f481ea48e57fe498cf75952192c859a Mon Sep 17 00:00:00 2001 From: Sachin-chaurasiya Date: Mon, 23 May 2022 21:01:57 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20=20#212=20=F0=9F=90=9B=20[Bug=20report]:?= =?UTF-8?q?=20XML=20Sitemap=20is=20not=20linked=20in=20robots.txt=20file?= =?UTF-8?q?=20and=20other=20SEO=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 +++- public/robots.txt | 6 +++--- public/sitemap.xml | 23 +++++++++++++++++++++++ src/meta/DefMeta.jsx | 9 +++++++-- 4 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 public/sitemap.xml diff --git a/public/index.html b/public/index.html index 7efc206370..634bf5205a 100644 --- a/public/index.html +++ b/public/index.html @@ -31,7 +31,9 @@ rel="stylesheet" /> - ReactPlay + + ReactPlay - One app to learn, create, and share ReactJS projects. + diff --git a/public/robots.txt b/public/robots.txt index e9e57dc4d4..e67db14abd 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,3 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: +User-agent: * +Disallow: +Sitemap: https://reactplay.io/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000000..f9d4ee4fdd --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,23 @@ + + + + + https://www.reactplay.io/ + 2022-05-23T15:20:03+00:00 + 1.00 + + + https://www.reactplay.io/plays + 2022-05-23T15:20:03+00:00 + 0.80 + + + https://www.reactplay.io/ideas + 2022-05-23T15:20:03+00:00 + 0.80 + + \ No newline at end of file diff --git a/src/meta/DefMeta.jsx b/src/meta/DefMeta.jsx index 75782b3cc7..8717739a3e 100644 --- a/src/meta/DefMeta.jsx +++ b/src/meta/DefMeta.jsx @@ -6,8 +6,8 @@ function DefMeta() { - - + + +