posts-landing.md 1.4 KB


title: "Blog" layout: archive

permalink: /posts/

{% if paginator %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %}

<button id="All" class="button-71" role="button" onclick="filterUsingCategory('All')">All ({{ posts.size }})</button>
{% assign tags = site.tags | sort %}
{% for category in tags %}
  {% assign cat = category | first %}
  <button id="{{ cat }}" class="button-71" role="button" onclick="filterUsingCategory(this.id)">{{ cat }} ({{ site.tags[cat].size }})</button>
{% endfor %}
<hr />

{% for post in posts %}
  <div class="post" id="post-{{post.title | slugify}}">
    <p class="itemInteriorSection">
      {%- unless post.hidden -%}
        {% include archive-single.html %}
        {% if post.image %}
          <a href="{{ post.link }}"><img src="{{ post.image }}"></a>
        {% endif %}
      {%- endunless -%}
    </p>
  </div>
{% endfor %}