-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (52 loc) · 2.41 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
51
52
53
54
55
56
57
58
---
layout: default
title: Home
---
<div class="catalogue">
<br>
<table>
<tr>
<td style="width: 80%">
{% for post in paginator.posts %}
<a href="{{ post.url | prepend: site.baseurl }}" target="_blank" class="catalogue-item">
<div>
<time datetime="{{ post.date }}"
class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
<h1 class="catalogue-title">{{ post.title }}</h1>
<div class="catalogue-line"></div>
{% assign preprocessed_content=post.content | replace: '<p>', '__p__' %}
{% assign preprocessed_content=preprocessed_content | replace: '</p>', '__/p__' %}
{% assign preprocessed_content=preprocessed_content | replace: '<br>', '__br__' %}
{% assign preprocessed_content=preprocessed_content | replace: '<br />', '__br__' %}
{% assign truncated_content=preprocessed_content | strip_html | truncatewords:50 %}
{% assign cleaned_content=truncated_content | replace: '__p__', '<p>' %}
{% assign cleaned_content=cleaned_content | replace: '__/p__', '</p>' %}
{% assign cleaned_content=cleaned_content | replace: '__br__', '<br>' %}
<p>{{ cleaned_content }}</p>
</div>
</a>
{% endfor %}
</td>
<td style="width: 5%"></td>
<td style="font-size: small;width: 15%">
<br><br>
CATEGORIES
<br><br>
{% assign categories = site.categories | sort %}
{% for category in categories %}
{{category[0].title}}
<a href="/category/{{ category[0] | downcase }}">{{ category[0] }}({{ category[1].size }}) </a>
{% endfor %}
</td>
</tr>
</table>
</div>
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">←</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">→</a>
{% endif %}
<span>{{ paginator.page }}</span>
</div>