As it is now, every time we generate the site we change almost every file because the latest articles are hardcoded. Adding one new article changes about 1,100 files in the website.
Maybe we can make that "Latest articles" bit a small piece of HTML that everyone can share so that old articles don't need to update their files.
As it is now, every time we generate the site we change almost every file because the latest articles are hardcoded. Adding one new article changes about 1,100 files in the website.
Maybe we can make that "Latest articles" bit a small piece of HTML that everyone can share so that old articles don't need to update their files.
Here's an example:
https://www.tutorialspoint.com/How-to-load-external-HTML-into-a-div-using-jQuery
The trick is how to get that"Latest articles" list into the snippet page so it's static.