sbclter / sbclter-website-2019

finally, a new website.
GNU General Public License v3.0
3 stars 3 forks source link

site map is not working #68

Closed lkuiucsb closed 2 years ago

lkuiucsb commented 4 years ago

map: https://sbclter.msi.ucsb.edu/research/sampling_sites/

The warning message said something wrong with the JavaScript

mobb commented 4 years ago

It works fine. Someone copied over a file that did not contain the API key. Possibly, someone changed a group of pages in bulk, instead of just a few.

This is a snippet of the page that should not have been copied over (research/sampling_sites/index.html): Screen Shot 2020-02-04 at 9 32 30 AM

Pointers:

  1. if you do a bulk copy, be sure that every page works on your localhost before you copy. Alternatively, since you will have already checked the pages you changed on localhost, only copy those.

  2. The API key must NEVER go into git. So you must read the instructions in the _config.yml file.

  3. @lkuiucsb: The message from the page was look at the javascript console. There was no error in the javascript, but the console said the API key was wrong. Li, you should get the web developer add-on. It includes a javascript console, and the problem was quite obvious when I opened it up.