-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
50 lines (47 loc) · 1.93 KB
/
index.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
---
layout: default
---
<!-- Page Header -->
<header class="masthead">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="site-heading">
<h1>Tech Blog</h1>
<span class="subheading">From the team at Kraken Technologies</span>
</div>
</div>
</div>
</div>
</header>
<article>
<div class="container">
<div class="row">
<div class="col-lg-11 mx-auto">
<div class="row">
{% for post in site.categories['news'] %}
{% for member in site.data.members %}
{% if member.name == post.author %}
{% assign author = member %}
{% endif %}
{% endfor %}
<div class="col-md-10 col-lg-6 mx-auto mb-4">
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
{{ post.title }}
</h2>
<p class="post-subtitle">
{{ post.content | strip_html | truncate:140}}
</p>
</a>
<p class="post-meta">Posted by {% if author.twitter %}<a href="https://twitter.com/{{ author.twitter }}" target="_blank">{{ post.author }}</a>{% else %}<strong>{{ post.author }}</strong>{% endif %} on {{ post.date | date: "%b %-d, %Y" }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</article>