{% if site.posts != empty %}
<div class="recent-posts">
    <h1>Recent Posts</h1>
    {% for post in site.posts limit: 3 %}
    {% if forloop.first %}
    {% assign add_class = 'most-recent' %}
    {% capture fresh_tag %}
    &nbsp;<span class="badge"><smaller>FRESH</smaller></span>
    {% endcapture %}
    {% endif %}
    <ul class="homepage-posts {{ add_class }}">
        <li>
        <span>
          <h4>
              <a href="{{ site.baseurl }}{{ post.url }}">
                  {{ post.title }}
              </a>
              {{ fresh_tag }}
              <time class="pull-right">
                  {{ post.date | date_to_string | date: "%b %-d, %Y"  }}
              </time>
          </h4>
        </span>
        </li>
    </ul>
    {% assign add_class = '' %}
    {% assign fresh_tag = '' %}
    {% endfor %}
    <ul>
        <a href="{{ site.baseurl }}/list.html">View More...</a>
    </ul>
</div>
{% endif %}
{% if site.posts != empty %}
<div class="recent-posts">
    <h1>Recent Posts</h1>
    {% for post in site.posts limit: 3 %}
    {% if forloop.first %}
    {% assign add_class = 'most-recent' %}
    {% capture fresh_tag %}
    &nbsp;<span class="badge"><smaller>FRESH</smaller></span>
    {% endcapture %}
    {% endif %}
    <ul class="homepage-posts {{ add_class }}">
        <li>
        <span>
          <h4>
              <a href="{{ site.baseurl }}{{ post.url }}">
                  {{ post.title }}
              </a>
              {{ fresh_tag }}
              <time class="pull-right">
                  {{ post.date | date_to_string | date: "%b %-d, %Y"  }}
              </time>
          </h4>
        </span>
        </li>
    </ul>
    {% assign add_class = '' %}
    {% assign fresh_tag = '' %}
    {% endfor %}
    <ul>
        <a href="{{ site.baseurl }}/blog">View More...</a>
    </ul>
</div>
{% endif %}
Change blog more posts link
Change blog more posts link
