forked from AkshayAgarwal007/Jekyll-Mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (98 loc) · 3.12 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
layout: default
---
<!--
<img src="http://ghchart.rshah.org/5c55aa/fluca1978" alt="Luca's activity on GitHub" />
-->
{% assign postcounter = 0 %}
{% assign rowcounter = 0 %}
<div class="post_table_container">
<table class="table_posts" >
{% for post in paginator.posts %}
{% assign loopindex = forloop.index | modulo: 2 %}
{% assign postcounter = postcounter | plus:1 %}
{% if loopindex == 0 %}
<tr>
{% assign rowcounter = rowcounter | plus:1 %}
{% assign rowmodulo = rowcounter | modulo:2 %}
{% if rowmodulo == 0 %}
{% assign left_style = 'post_table_article_left' %}
{% assign right_style = 'post_table_article_right' %}
{% else %}
{% assign left_style = 'post_table_article_right' %}
{% assign right_style = 'post_table_article_left' %}
{% endif %}
{% endif %}
{% if postcounter == 1 %}
<td colspan="2" class="post_table_article_first" >
{% else %}
{% if loopindex == 0 %}
<td class="{{ left_style }}">
{% else %}
<td class="{{ right_style }}">
{% endif %}
{% endif %}
<article class="post">
{% if post.blogger_orig_url %}
{% else %}
<div class="entry" >
<a href="{{ site.baseurl }}{{ post.url }}">
<h1 align="center" >
{% include post_categories_icon.html %}
<br/>
{{ post.title }}
</h1>
</a>
{{ post.excerpt }}
<div class="categories">
{{ post.date | date: "written sometime in %B %Y" }}
</div>
{% comment %}
all avalaible categories
{% endcomment %}
{% include post_categories.html %}
</div>
{% endif %}
</article>
</td>
{% if loopindex == 1 %}
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% comment %}
all available posts sort by tag removed because too long!
{% endcomment %}
<br/>
<!-- Pagination links -->
<div class="paginator">
<center>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="paginator_previous">
<i class="fas fa-arrow-circle-left fa-3x"></i>
Newer articles
</a>
{% else %}
<span class="paginator_previous" >
You are viewing the {{ paginator.per_page }} newest posts
</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="paginator_next">
<i class="fas fa-arrow-circle-right fa-3x"></i>
Older articles
</a>
{% else %}
<span class="paginator_next" >
You are viewing the {{ paginator.per_page }} oldest posts
</span>
{% endif %}
<br/>
<span class="paginator_info ">
There are {{ paginator.total_posts }} total articles on this blog,
you are viewing page {{ paginator.page }} of {{ paginator.total_pages }}.
</span>
</center>
</div>
</div>