# Hubl Variable for post excerpt in the email template

**URL:** <https://community.hubspot.com/t/hubl-variable-for-post-excerpt-in-the-email-template/63847>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [August 26, 2022, 4:59pm UTC](https://community.hubspot.com/t/hubl-variable-for-post-excerpt-in-the-email-template/63847 "2022-08-26T16:59:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj2611](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/raj2611/32/196214_2.png) [@raj2611](https://community.hubspot.com/u/raj2611)\
**Post date:** [August 26, 2022, 4:59pm UTC](https://community.hubspot.com/t/hubl-variable-for-post-excerpt-in-the-email-template/63847/1 "2022-08-26T16:59:40Z")

</div>

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 %}  
&nbsp;&nbsp;&nbsp;&nbsp;\<h3\>\<a href=“{{ post.absolute\_url }}”\>{{ post.name }}\</a\>\</h3\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<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?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [August 29, 2022, 9:06am UTC](https://community.hubspot.com/t/hubl-variable-for-post-excerpt-in-the-email-template/63847/2 "2022-08-29T09:06:32Z")

</div>

Hi @raj2611 ,

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

```lia-code-sample
{% 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>

```
