category.html 1.11 KB
Newer Older
1
2
3
4
---
layout: default
---

5
{% for post in site.categories[page.category] offset: 0 limit: 4 %}
6
<h1>
7
    <a href="{{ post.url | absolute_url }}">{{ post.title }}</a>
8
</h1>
9
{% if page.category == 'events' %}
10
<h4>{{ post.event_date | date: "%A %B %-d, %Y" }}</h4>
11
12
13
14
{% else %}
<h4>{{ post.date | date: "%A %B %-d, %Y" }}</h4>
{% endif %}

15
<br />
16
<div class="row">
Zach Knox's avatar
Zach Knox committed
17
{% if post.hero_image %}
18
19
20
21
22
23
24
25
26
27
28
    <div class="col-md-6">
        <p>
            <img class="img-fluid" src="{{ post.hero_image | absolute_url }}" alt={{ post.hero_alt }}>
        </p>
    </div>
    <div class="col-md-6">
        <p>
            {{ post.excerpt }}
        </p>
        <p>
            <a href="{{ post.url | absolute_url }}">Read More
29
                <i class="fas fa-arrow-circle-right"></i>
30
31
32
33
34
35
36
            </a>
        </p>
    </div>
{% else %}
{{ post.excerpt }}
<p>
    <a href="{{ post.url | absolute_url }}">Read More
37
        <i class="fas fa-arrow-circle-right"></i>
38
39
    </a>
</p>
Zach Knox's avatar
Zach Knox committed
40
{% endif %}
41
</div>
42
<br />
43
44
45
46
{% endfor %}

<br />
{% if page.archive %}
47
<p><a href="{{ page.archive | aosulute_url }}"><i class="fas fa-arrow-circle-left"></i> Archive</a></p>
48
{% endif %}