Creating a blog homepage that shows most recent blogposts by category/tag

Regular Contributor

Hello,

 

I'd like to have a blog home page that not only shows blog posts by tag/category and allows you to filter by these, but that actually shows you the most recent articles by category/tag with a see more link.

 

 

Just like this - there's a Product updates tag and a wistia culture tag Smiley HappyScreen Shot 2019-05-21 at 09.35.15.png

 

Thanks!

alivia

Reply
0 Upvotes
1 Reply 1
Top Contributor

Hey there,

 

You can use the HubL function blog_recent_tag_posts to get the most recent posts from a particular tag. You'd need to do this for each tag.

https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-recent-tag-posts

 

You can follow along with this tutorial to actually print out the blog posts onto your homepage

https://designers.hubspot.com/docs/tutorials/printing-sets-of-blog-posts-on-page-templates