I've been working on my own website for a while and wanted to go ahead and make my own blog type section where I can post things. I've managed to get that done but would like to have an automatically updating 'Recent Posts' list in the sidebar instead of having to manually update the post names and links every time I go to make a new post. Here is what my sidebar looks like right now:
<aside id="sidebar">
<div id="recent">
<p>Recent Posts</p>
<h3><a href="articles/first_post_20140124.html" title="First Post">First Post</a></h3>
<h3><a href="articles/second_post_20140124.html" title="Second Post">Second Post</a></h3>
</div>
</aside>
So what I'm assuming I need to do is have some code that looks in the '/articles/' directory, finds the most recent post (all posts are timestamped) and then adds in the file path to the anchor?
I'm pretty new to coding things from scratch as I'm normally on the design side of things, so any help would be much appreciated.