How to - Printing HubL module info on blog listing

Case as example:

We needed to bring info from  PIC portfolio s but we wanted to have details for each portfolio card.

To do this we need to create a custom module and add it to the portfolio posts.
In the blog-post-portfolio.html we add the module and add a name ("website_portfolio_metafields") to the module


To display the porfolios posts and the details added to "website_portfolio_metafields" we create a module to bring the posts per tag.

To get the details from "website_portfolio_metafields" in the posts loop we have to do it like this:
{{ portfolio_item.widgets.website_portfolio_metafields.body.client }}




Hubspot documentation: