-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.liquid
More file actions
64 lines (59 loc) · 1.71 KB
/
blog.liquid
File metadata and controls
64 lines (59 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: default
title: "Blog"
description: "The SHFT Group blog"
eleventyNavigation:
key: "Blog"
order: 4
pagination:
data: collections.posts
size: 2
reverse: true
alias: blog_posts
---
<div class="pager">
{% if pagination.href.previous %}
<a class="prev" href="{{ pagination.href.previous }}">
<i class="fa fa-chevron-left fa-lg"></i>
</a>
{% endif %}
{% if pagination.href.next %}
<a class="next" href="{{ pagination.href.next }}">
<i class="fa fa-chevron-right fa-lg"></i>
</a>
{% endif %}
</div>
{% for post in blog_posts %}
{% for member in collections.team %}
{% if member.data.handle == post.data.author_handle %}
{% assign author = member %}
{% endif %}
{% endfor %}
<div class="bigspacer"></div>
<div class="row">
<div class="col-md-3">
<div class="head">
<a class="off" href="{{ post.url }}">{{ post.data.title }}</a>
</div>
<div class="smallnote">
{{ post.date | date_to_string }}
{% if author %}
by <a class="off" href="{{ author.url }}">{{ author.data.nickname }}</a>
{% endif %}
</div>
</div>
<div class="col-md-8">
<div style="height:5px;"></div>
{% if post.data.image %}
<a href="{{ post.url }}">
<img class="offset-1" src="{{ post.data.image }}">
</a>
{% endif %}
<div class="post">
{{ post.templateContent }}
</div>
</div>
<div class="col-md-1"></div>
</div>
{% endfor %}
<div class="bigspacer"></div>