<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pulling a Blog Post Meta Description in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/135434#M4305</link>
    <description>&lt;P&gt;I want to pull a blog post meta descritption for a post listing module I am designing for our homepage. Does anyone know of a way to do this? Or is there a way to&amp;nbsp; truncate the body content to a certain character count?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the module I am building:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set posts = blog_recent_posts ('default', 3) %}
{% for post in posts %}
&amp;lt;div class="background_focus_image span4 widget-span" style="background:linear-gradient(0deg, rgba(000,000,000,0.5), rgba(000,000,000,0.5)) repeat ,url({{ post.post_list_summary_featured_image }}) no-repeat center bottom; background-size: cover;"&amp;gt;
    &amp;lt;div class="homepage_title_backer"&amp;gt;
        &amp;lt;h2&amp;gt;&amp;lt;a href="{{ post.absolute_url }}"&amp;gt;{{ post.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="homepage_desc"&amp;gt;
        &amp;lt;p&amp;gt;{{ meta description or truncated contnet would go here }}&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="homepage_CTA"&amp;gt;
        &amp;lt;a href="{{ post.absolute_url }}" class="hs-button"&amp;gt;Read More&amp;lt;/a&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 15:26:13 GMT</pubDate>
    <dc:creator>ahein624</dc:creator>
    <dc:date>2018-01-02T15:26:13Z</dc:date>
    <item>
      <title>Pulling a Blog Post Meta Description</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/135434#M4305</link>
      <description>&lt;P&gt;I want to pull a blog post meta descritption for a post listing module I am designing for our homepage. Does anyone know of a way to do this? Or is there a way to&amp;nbsp; truncate the body content to a certain character count?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the module I am building:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set posts = blog_recent_posts ('default', 3) %}
{% for post in posts %}
&amp;lt;div class="background_focus_image span4 widget-span" style="background:linear-gradient(0deg, rgba(000,000,000,0.5), rgba(000,000,000,0.5)) repeat ,url({{ post.post_list_summary_featured_image }}) no-repeat center bottom; background-size: cover;"&amp;gt;
    &amp;lt;div class="homepage_title_backer"&amp;gt;
        &amp;lt;h2&amp;gt;&amp;lt;a href="{{ post.absolute_url }}"&amp;gt;{{ post.name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="homepage_desc"&amp;gt;
        &amp;lt;p&amp;gt;{{ meta description or truncated contnet would go here }}&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="homepage_CTA"&amp;gt;
        &amp;lt;a href="{{ post.absolute_url }}" class="hs-button"&amp;gt;Read More&amp;lt;/a&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
{% endfor %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 15:26:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/135434#M4305</guid>
      <dc:creator>ahein624</dc:creator>
      <dc:date>2018-01-02T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a Blog Post Meta Description</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/165578#M4374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13766"&gt;@ahein624&lt;/a&gt;&amp;nbsp; &amp;nbsp; Perhaps&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;can provide some guidance here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Ed Justen&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:48:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/165578#M4374</guid>
      <dc:creator>edjusten</dc:creator>
      <dc:date>2018-01-10T21:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a Blog Post Meta Description</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/166008#M4378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;{{ content.meta_description }}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is the tag to pull the meta description of a page - though if this is on the listing page it might just pull the listing page's description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{{ content.post_body|truncate(25) }}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will allow you to pull the post body and limit to a certain number of characters. 25 can be switched out to whatever limit you want (max of 255 characters).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{{ content.post_summary }} will print the blog post summary - this is what appears before the "read more" separator on your page.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 23:37:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/166008#M4378</guid>
      <dc:creator>Jlamb1</dc:creator>
      <dc:date>2018-01-10T23:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a Blog Post Meta Description</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/249285#M10780</link>
      <description>&lt;P&gt;I'd love to know the if/else statement I can use to amend my blog Listing Template that will print anything entered in the Meta Description field OR use a truncated version of the body content (if nothing is entered in the Meta Description field).&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 19:51:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Pulling-a-Blog-Post-Meta-Description/m-p/249285#M10780</guid>
      <dc:creator>cliffypop</dc:creator>
      <dc:date>2019-01-29T19:51:17Z</dc:date>
    </item>
  </channel>
</rss>

