Hubl Variable for post excerpt in the email template

Dear Community,

I am trying to integrate Hubspot’s recent blogs into the email template. We are using the following code.

{% set posts = blog_recent_posts(‘495352’, 5) %}
{% for post in posts %}
    <h3><a href=“{{ post.absolute_url }}”>{{ post.name }}</a></h3>
    <img src=“{{ post.featured_image }}” alt=“{{ post.name }}”> <p>{{content.post_summary}}</p>
<p>
<a href=“{{ post.absolute_url }}”>Read More</a>
</p>
{% endfor %}</div>

Everything works fine apart from the content.post_summary which we are using to pull the post excerpt.

Can someone guide what is missing here for the post excerpt?

Hi @raj2611 ,

I think you should use `post.` instead of `content.`, so try this:

{% set posts = blog_recent_posts('495352', 5) %}
{% for post in posts %}
 <h3><a href="{{ post.absolute_url }}">{{ post.name }}</a></h3>
 <img src="{{ post.featured_image }}" alt="{{ post.name }}">
 <p>{{post.post_summary}}</p>
<p>
 <a href="{{ post.absolute_url }}">Read More</a>
</p>
{% endfor %}</div>