I am building a website with an articles page, and on the home page we have a featured article (The most recent one). When we upload a new article, we would like the one on the home page to update automatically.
So what I need to do, is use a JS function on page load, to then search the articles file for the article with the most recent date, and pull the data from this element and use it on the home page.