<?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 pagination with loop in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/176526#M4615</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;No I've finally fixed it. All good thanks,&lt;BR /&gt;&lt;BR /&gt;Here is the solution I&amp;nbsp;found if anyone else need it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="pagination wrapper flex-row space-between"&amp;gt;
  {% if not simple_list_page %}
    &amp;lt;div class="pages-navigation flex-row align-center"&amp;gt;
        {% if current_page_num &amp;gt; 1 %}
        {% set previous = current_page_num - 1 %}
        &amp;lt;a rel="nofollow" href="{{ blog_page_link(previous) }}"&amp;gt; 
            &amp;lt;img class="blue-arrow-reverse" src="" alt="blue arrow"&amp;gt;
        &amp;lt;/a&amp;gt;
      {% endif %} {% if current_page_num %}
      &amp;lt;a href="{{ content.post_slug }}" class="page-number current"&amp;gt;
        &amp;lt;span&amp;gt;{{ current_page_num }}&amp;lt;/span&amp;gt;
      &amp;lt;/a&amp;gt;
      {% endif %} {% if next_page_num %}
      &amp;lt;a href="{{ blog_page_link(next_page_num) }}" class="page-number"&amp;gt;
        &amp;lt;span&amp;gt;{{next_page_num }}&amp;lt;/span&amp;gt;
      &amp;lt;/a&amp;gt;
      &amp;lt;a rel="nofollow" href="{{ blog_page_link(next_page_num) }}"&amp;gt;
        &amp;lt;img src="" alt="blue arrow"&amp;gt;
      &amp;lt;/a&amp;gt;
      {% endif %}
    &amp;lt;/div&amp;gt;
  {% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best.&lt;BR /&gt;Paul&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 15:50:01 GMT</pubDate>
    <dc:creator>paulpf</dc:creator>
    <dc:date>2018-02-02T15:50:01Z</dc:date>
    <item>
      <title>Blog pagination with loop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/137201#M4307</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I've come across several posts regarding pagination but I can't fix my problem.&lt;BR /&gt;I'm trying to run a loop for every pages I might have based on my contents and trying to :&lt;BR /&gt;display the current one, display the next one, and add a link for the other pages.&amp;nbsp;&lt;BR /&gt;It is supposed to look like this (considering we are on the first page) but all I have so far is : 0 0 &amp;gt;&lt;BR /&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-01-02 at 18.52.39.png" style="width: 200px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/7182iD40F4ECF13C3413A/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screen Shot 2018-01-02 at 18.52.39.png" alt="Screen Shot 2018-01-02 at 18.52.39.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This is my code so far :&lt;/P&gt;&lt;PRE&gt;  &amp;lt;div class="p-n flex-row a-c"&amp;gt;
    &amp;lt;a href="{{ content.post_slug }}" class="p-n c"&amp;gt;
      &amp;lt;span&amp;gt;{{ current_page_num }}&amp;lt;/span&amp;gt;
    &amp;lt;/a&amp;gt;
    &amp;lt;a href="{{ content.next_post_slug }}" class="p-n"&amp;gt;
      &amp;lt;span&amp;gt;{{ next_page_num }}&amp;lt;/span&amp;gt;
    &amp;lt;/a&amp;gt;
    &amp;lt;a href="{{ content.next_post_slug }}"&amp;gt;
      &amp;lt;img src="/.../blue-arrow.svg" alt="blue arrow"&amp;gt;
    &amp;lt;/a&amp;gt;
  &amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;When I'm trying to run a foor loop on it I can't display what I want.&amp;nbsp;&lt;BR /&gt;If anyone has an answer it would be greatly appreciated !&lt;BR /&gt;&lt;BR /&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:08:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/137201#M4307</guid>
      <dc:creator>paulpf</dc:creator>
      <dc:date>2018-01-03T11:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Blog pagination with loop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/176462#M4596</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/42832"&gt;@paulpf&lt;/a&gt;&amp;nbsp;are you still experiencing this roadblock? If so let me know and I'll connect you with a design expert.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 10:46:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/176462#M4596</guid>
      <dc:creator>roisinkirby</dc:creator>
      <dc:date>2018-02-02T10:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Blog pagination with loop</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/176526#M4615</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;No I've finally fixed it. All good thanks,&lt;BR /&gt;&lt;BR /&gt;Here is the solution I&amp;nbsp;found if anyone else need it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="pagination wrapper flex-row space-between"&amp;gt;
  {% if not simple_list_page %}
    &amp;lt;div class="pages-navigation flex-row align-center"&amp;gt;
        {% if current_page_num &amp;gt; 1 %}
        {% set previous = current_page_num - 1 %}
        &amp;lt;a rel="nofollow" href="{{ blog_page_link(previous) }}"&amp;gt; 
            &amp;lt;img class="blue-arrow-reverse" src="" alt="blue arrow"&amp;gt;
        &amp;lt;/a&amp;gt;
      {% endif %} {% if current_page_num %}
      &amp;lt;a href="{{ content.post_slug }}" class="page-number current"&amp;gt;
        &amp;lt;span&amp;gt;{{ current_page_num }}&amp;lt;/span&amp;gt;
      &amp;lt;/a&amp;gt;
      {% endif %} {% if next_page_num %}
      &amp;lt;a href="{{ blog_page_link(next_page_num) }}" class="page-number"&amp;gt;
        &amp;lt;span&amp;gt;{{next_page_num }}&amp;lt;/span&amp;gt;
      &amp;lt;/a&amp;gt;
      &amp;lt;a rel="nofollow" href="{{ blog_page_link(next_page_num) }}"&amp;gt;
        &amp;lt;img src="" alt="blue arrow"&amp;gt;
      &amp;lt;/a&amp;gt;
      {% endif %}
    &amp;lt;/div&amp;gt;
  {% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best.&lt;BR /&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:50:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blog-pagination-with-loop/m-p/176526#M4615</guid>
      <dc:creator>paulpf</dc:creator>
      <dc:date>2018-02-02T15:50:01Z</dc:date>
    </item>
  </channel>
</rss>

