<?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 Re: Blog section in landing page in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Blog-section-in-landing-page/m-p/387910#M19696</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/143784"&gt;@SaraE11&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to create such functionality via the blog_recent_posts&amp;nbsp;HubL function. This returns a sequence of blog post objects for the specified blog, sorted by most recent first - see this resource on HubL functions&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for reference. You would add the below snippet to your template, configured to your needs with the help of a developer:&lt;/P&gt;
&lt;PRE class="line-numbers  language-jinja2"&gt;&lt;CODE&gt;{{ blog_recent_posts('default', 5) }}
{% set rec_posts = blog_recent_posts('default', 5) %}
{% for rec_post in rec_posts %}
    &amp;lt;div class="post-title"&amp;gt;{{ rec_post.name }}&amp;lt;/div&amp;gt;
{% endfor %}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Please note this function has a limit of 200 posts.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps guide in the right direction!&lt;/P&gt;
&lt;P&gt;Tina&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 18:47:30 GMT</pubDate>
    <dc:creator>ernestina</dc:creator>
    <dc:date>2020-11-19T18:47:30Z</dc:date>
    <item>
      <title>Blog section in landing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-section-in-landing-page/m-p/387536#M19664</link>
      <description>&lt;P&gt;Is it possible to have a section on a landing page that shows the latest blog post as shown in the image?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2020-11-17 a la(s) 9.12.19 a. m..png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/34438i3F2939FB832D55C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2020-11-17 a la(s) 9.12.19 a. m..png" alt="Captura de pantalla 2020-11-17 a la(s) 9.12.19 a. m..png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 19:24:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-section-in-landing-page/m-p/387536#M19664</guid>
      <dc:creator>SaraE11</dc:creator>
      <dc:date>2020-11-18T19:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Blog section in landing page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-section-in-landing-page/m-p/387910#M19696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/143784"&gt;@SaraE11&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to create such functionality via the blog_recent_posts&amp;nbsp;HubL function. This returns a sequence of blog post objects for the specified blog, sorted by most recent first - see this resource on HubL functions&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for reference. You would add the below snippet to your template, configured to your needs with the help of a developer:&lt;/P&gt;
&lt;PRE class="line-numbers  language-jinja2"&gt;&lt;CODE&gt;{{ blog_recent_posts('default', 5) }}
{% set rec_posts = blog_recent_posts('default', 5) %}
{% for rec_post in rec_posts %}
    &amp;lt;div class="post-title"&amp;gt;{{ rec_post.name }}&amp;lt;/div&amp;gt;
{% endfor %}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Please note this function has a limit of 200 posts.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps guide in the right direction!&lt;/P&gt;
&lt;P&gt;Tina&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:47:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-section-in-landing-page/m-p/387910#M19696</guid>
      <dc:creator>ernestina</dc:creator>
      <dc:date>2020-11-19T18:47:30Z</dc:date>
    </item>
  </channel>
</rss>

