]> git.drewedgar.com - website.git/blob - src/_includes/layouts/post.liquid
FEAT: added 404 page
[website.git] / src / _includes / layouts / post.liquid
1 ---
2 layout: "layouts/base.liquid"
3 ---
4
5 <article class="post">
6   <div class="frontmatter">
7     <h1>{{ title }}</h1>
8   </div>
9   {% if featuredImage %}
10     <img src={{ post.data.featuredImage }} alt={{ post.data.featuredImageAlt }}>
11   {% endif %}
12
13   <div class="post-content">
14     {{ content }}
15   </div>
16
17   <div class="frontmatter">
18       <p>Published on: {{ date | date: "%B %d, %Y" }}</p>
19
20     {% assign filteredTags = tags | where_exp: "tag", "tag != 'posts'" %}
21     {% if filteredTags.size > 0 %}
22     <div class="tags">
23       <p>Tags:</p>
24       <ul>
25         {% for tag in filteredTags %}
26           <li>{{ tag }}</li>
27         {% endfor %}
28       </ul>
29     </div>
30     {% endif %}
31   </div>
32 </article>