-
Notifications
You must be signed in to change notification settings - Fork 1
/
archives.html
73 lines (71 loc) · 3.52 KB
/
archives.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
62
63
64
65
66
67
68
69
70
71
72
73
---
title: Archives
layout: default
permalink: /archives/
pagination:
enabled: true
---
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="c-posts">
<div class="b-title">
{% if paginator.page == 1 %}
<h3>Archives</h3>
{% else %}
<h3>Archives - Page {{ paginator.page }}</h3>
{% endif %}
</div>
<div class="b-posts">
{% for post in paginator.posts %}
<div class="b-postItem">
<div class="b-postImg">
{% if post.thumbnail %}
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
{% capture image-path %}{{ site.baseurl }}/assets/{{ post.path | replace:'_posts/', 'posts/' | replace:'.md','' }}{% endcapture %}
<img src="{{ image-path }}/{{ post.thumbnail }}" alt="{{ post.title }}">
</a>
{% else %}
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
{% capture image-name %}{{ post.category | slugify }}.jpg{% endcapture %}
<img src="{{ site.baseurl }}/assets/images/categories/{{ image-name }}" alt="{{ post.title }}">
</a>
{% endif %}
</div>
<div class="b-postDesc">
<a href="{{ post.url | relative_url }}" title="{{ post.title }}" class="e-title"><h4>{{ post.title }}</h4></a>
<p>{{ post.content | strip_html | truncatewords:50 }}</p>
<div class="c-postInfo">
<div class="b-date">
<p><span class ="fa fa-calendar"></span>
<a href="{{ site.baseurl }}/archives/{{ post.date | date: '%Y/%m' }}">{{ post.date | date: "%b %Y" }}</a>
</p>
</div>
<div class="b-author">
{% assign author = site.data.authors[post.author] %}
<p>By <a href="{{ site.baseurl }}/authors/{{ author.full_name | slugify }}">{{ author.name }}</a></p>
</div>
<div class="b-category">
<p>
<span class="fa fa-folder"></span>
<a href="{{ site.baseurl }}/category/{{ post.category | slugify }}">{{ post.category }}</a>
</p>
</div>
<div class="b-tags">
<p>
<span class="fa fa-tags"></span>
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tag/{{ tag | slugify }}">{{ tag }}</a>
{% unless forloop.last %}, {% endunless %}
{% endfor %}
</p>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% capture paginator_base_path %}{{ site.baseurl }}/archives{% endcapture %}
{% include paginator.html %}
</div>
</div>