QuantEcon / Bookshelf

Code for the site QuantEconLib
1 stars 0 forks source link

Sitemap for SEO #334

Closed AakashGfude closed 5 years ago

AakashGfude commented 5 years ago

Have written a module to generate and overwrite sitemaps. At present, the sitemaps have the following urls in them :-

1) homepage 2) about 3) contact 4) submission pages 5) submission comment pages 6) user profile pages

The sitemap is created when we start our server app, and is updated when :-

1) we submit a notebook 2) delete a notebook 3) delete a user 4) merge accounts of users 5) add a user

The url of the sitemap is /sitemap.xml . We will also add it to our robots.txt like Sitemap: https://notes.quantecon.org/sitemap.xml

image

Do suggest any urls I have missed, and any scenario to update the sitemap.

We can also add extra info to the sitemap, like lastmodifiedDate for submissions but that can be done in stage 2 after we push this.

fixes #330

AtlasMaxima-zz commented 5 years ago

@AakashGfude when trying to build on development server these warnings came up.

screen shot 2019-02-27 at 12 24 54 am
AakashGfude commented 5 years ago

@AtlasMaxima I had upgraded react-scripts for seo purposes. That is why we see the new warnings. Nothing to be worried about. These are about the accessibility of our app and we can probably target it later.