-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnews.html
60 lines (42 loc) · 1.83 KB
/
news.html
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
---
title: Gaffer | News
---
{% include header.html %}
{% include intro.html title="News" image="https://image-engine.com/wp-content/uploads/2017/07/build_logan_lookDev_v236_0173.jpg" %} <!-- Logan hero lookdev-->
<!-- Begin News Section -->
<section id="news" class="container mtb-60">
<div class="row">
<div class="col-md-8 col-md-offset-2">
{% for post in site.posts %}
<!-- Begin Post -->
<div class="blog-post mb-30">
<div class="post-meta">
<span>{{ post.date | date: "%B %-d, %Y" }}</span>
</div>
<div class="post-header">
<a href="{{ post.url }}"><h4 class="mb-0">{{ post.title }}</h4></a>
<h5 class="gray">{{ post.subtitle }}</h5>
</div>
<div class="post-media">
{% assign iconPrefix = post.icon | slice: 0, 4 %}
{% unless iconPrefix == "" %}
{% if iconPrefix == "http" %}
<img src="{{ post.icon }}" alt="" />
{% else %}
<img src="{{ site.baseurl }}{{ post.icon }}" alt="" />
{% endif %}
{% endunless %}
</div>
<div class="mb-30">
{{ post.excerpt }}
</div>
<a class="btn btn-sm float-right dark" href="{{ site.baseurl }}{{ post.url }}">Read More <i class="fa fa-long-arrow-right"></i></a>
</div>
<!-- End Post -->
<hr class="mb-45">
{% endfor %}
</div>
</div>
</section>
<!-- End News Section -->
{% include footer.html %}