---
layout: "layouts/base.liquid"
---

<article class="post">
  <div class="frontmatter">
    <h1>{{ title }}</h1>
  </div>
  {% if featuredImage %}
    <img src={{ post.data.featuredImage }} alt={{ post.data.featuredImageAlt }}>
  {% endif %}

  <div class="post-content">
    {{ content }}
  </div>

  <div class="frontmatter">
      <p>Published on: {{ date | date: "%B %d, %Y" }}</p>

    {% assign filteredTags = tags | where_exp: "tag", "tag != 'posts'" %}
    {% if filteredTags.size > 0 %}
    <div class="tags">
      <p>Tags:</p>
      <ul>
        {% for tag in filteredTags %}
          <li>{{ tag }}</li>
        {% endfor %}
      </ul>
    </div>
    {% endif %}
  </div>
</article>