Lego2012
10/24/2016 - 4:32 PM

Featured Post

Featured Post

---
layout: default
---

<div class="home">
  <!-- Section for Featured Post -->
  <section class="site-section site-section-last">
    <div class="wrapper">
      <h1>Featured Article</h1>
        {% assign count = 0 %}
        {% for post in site.posts reversed %}
          {% if post.featured == true and count < 1 %}
            <div class="post">
              <h2>{{ post.title  }}</h2>
              <p>
                {{ post.content | strip.html | strip_newlines | truncate: 200 }}
              </p>
              <p class="post-read-more-link">
                <a href="#">read more...</a>
              </p>
            </div>
          {% assign count = count | plus: 1 %}
          {% endif %}
        {% endfor %}
    </div>
  </section>
</div>