perladvent / perldotcom

The source code for Perl.com website
https://www.perl.com
77 stars 79 forks source link

Use jquery to load "Latest articles"? #263

Closed briandfoy closed 3 years ago

briandfoy commented 3 years ago

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.