vg-mjg/mjg-repo

Improve the updates section

Furitenman opened this issue · 5 comments

This part is pretty much a bloat of code in the index.html page.

At the time I re-worked it, I left it as-is since it would be easier to get approval. I'm thinking of putting all the info in a simple .json file and calling it with javascript to make it a) easier to update and b) easier to work with the index.html. Thoughts?

Bloat of code is the correct word, yes. Sounds good to me, as long as you explain how to update it afterwards.

Then we should also set a limit of entries in the updates section. Maybe 20?

I wouldn't limit it, since there are many useful things, but definitely put it somewhere else. I've created a file called updates.json where all the entries would be put as follows:

      {
         "title":"",
         "link":"",
         "category":"",
         "description":""
      },

Then it just uses javascript to read it and load it into the updates section. That way it's also a lot easier to update/delete stuff without meddling with html code.

It looks easy to update, so sure, please do it

I’ll upload it this afternoon then.