Loading blog posts from mongo


messing around with mongo and express and I need a neat way to list all my blog entries when the page loads from the main endpoint

I see you’re using a template engine. You could write a for-loop in your main page view that takes, say, your 6 most recent posts and displays them as bootstrap thumbnails, and the next one displayed in full either above or below the thumbnail gallery. I’ve done basically the same thing for my shopping cart main view page.