# Get blog's post\_body without summary?

**URL:** <https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083>\
**Category:** CMS Development\
**Created:** [February 23, 2017, 10:39am UTC](https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083 "2017-02-23T10:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larsc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/larsc/32/102945_2.png) [@Larsc](https://community.hubspot.com/u/Larsc)\
**Post date:** [February 23, 2017, 10:39am UTC](https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083/1 "2017-02-23T10:39:29Z")

</div>

Hi!

In my design, it is necessary to show the blog summary in a different DIV then the main body.

Therefore I’m looking for a way to get a blog’s body without the summary. is this even possible? It seems like there is no default HubL tag for this.

I allready tried the following tags, without success:

{{ content.post\_body|cut(content.post\_summary) }}  
{{ content.post\_body|replace(content.post\_summary, ‘’) }}

Is there any way to achieve this? Any help would be greatly appreciated!

Kind regards,

Lars Claus

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [February 23, 2017, 3:50pm UTC](https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083/2 "2017-02-23T15:50:29Z")

</div>

try this

```auto
{% set sections = content.post_body|split('<!--more-->', 2) %}
{% for section in sections %}
<div class="content-section content-section-{{loop.index}}">{{ section }}</div>
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [February 23, 2017, 4:04pm UTC](https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083/3 "2017-02-23T16:04:04Z")

</div>

if you need to place the summary and remaining body in specific places, you can use this.

```auto
{% set sections = content.post_body|split('<!--more-->', 2) %}

<div class="this_is_the_summary">
{{ sections[0] }}
</div>

<div>
This is other content between the two.
</div>

<div class="this_is_the_remaining_body">
{{ sections[1] }}
</div>

```

---

<div class="post-metadata">

**Author:** ![Larsc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/larsc/32/102945_2.png) [@Larsc](https://community.hubspot.com/u/Larsc)\
**Post date:** [February 24, 2017, 2:46pm UTC](https://community.hubspot.com/t/get-blogs-post-body-without-summary/1083/4 "2017-02-24T14:46:22Z")

</div>

Works perfectly, thanks!
