forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
61 lines (49 loc) · 1.46 KB
/
blog.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
61
---
#Layout
layout: page
title: Blog Post
permalink: /blog/
---
<!--<div class="posts">
{% for post in site.posts %}
<article class="post">
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
{% assign author = site.data.authors[post.author] %}
{% if author %}
<span>Written by <a href="{{ author.web }}" target="_blank">{{ author.name }}</a></span>
{% endif %}
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>
{% endfor %}
</div>-->
<div class="posts row-section">
<div class="row">
<div class="col-md-12 row-block">
<ul>
{% for post in site.posts %}
<li>
{% assign author = site.data.authors[post.author] %}
{% if author %}
<div class="media">
<div class="media-left align-self-center">
<img class="rounded-circle" src="{{ author.avatar }}">
</div>
<div class="media-body">
<h1>{{ post.title }}</h1>
<p class="post-info">Posted by <span><a href="{{ author.web }}" target="_blank">{{ author.name }}</a></span> on {{ post.date | date: '%B %d, %Y'}}</p>
<p>{{ post.excerpt }}</p>
</div>
<div class="media-right align-self-center">
<a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-default">Read More</a>
</div>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>