-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (83 loc) · 3.75 KB
/
index.html
File metadata and controls
95 lines (83 loc) · 3.75 KB
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
---
layout: default
title: IIITV Blog
---
{% include htmlhead.html %}
<body id="home">
<!-- main wrapper starts-->
<div class="wrapper">
{% include colorpicker.html %}
{% include brandheader.html %}
<!-- body Container Starts-->
<div class="main-container">
<div class="contents">
{% for post in paginator.posts %}
<!--Card-->
<div class="card">
<div class="card-content">
<div class="card-title">
<a href="{{post.url}}" class="primary-color"><h2>{{ post.title }}</h2></a></div>
<p>{{ post.content | strip_html | truncatewords: 70 }}</p>
<h5 class="primary-color"><a href="{{ post.url }}">more</a></h5>
</div>
<div class="card-action">
<div class="author">
<img src="{{ site.data.author[post.author].img }}" alt="">
<span class="credit"> <a href="http://github.com/{{post.author}}"><strong class="primary-color author-name">{{ post.author }}</strong></a>
on {{ post.date | date: "%b %d, %Y" }}</span>
</div>
<div class="article-tag">
<ul>
{% for tag in post.tags %}
<li><a href="/tags.html?{{tag}}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
<!--Card Ends-->
{% endfor %}
</div>
</div>
<!-- body Container Ends-->
<!-- Pagination Starts-->
<div class="pagination primary-color">
<ul>
{% if paginator.total_pages < 6 %}
{% assign sp = 1 %}
{% assign ep = paginator.total_pages %}
{% else %}
{% assign sp = paginator.page | minus: 2 %}
{% if sp < 1 %}{% assign sp = 1 %}{% endif %}
{% assign ep = sp | plus: 4 %}
{% if ep > paginator.total_pages %}
{% assign ep = paginator.total_pages %}
{% assign sp = ep | minus: 4 %}
{% endif %}
{% if sp < 1 %}{% assign sp = 1 %}{% endif %}
{% endif %}
{% if paginator.page > 1 %}
<li><a href="{% if paginator.page == 2 %}/{% else %}/page{{paginator.page | minus: 1}}{% endif %}"><i class="fa fa-chevron-left"></i></a></li>
{% endif %}
{% for pagenum in (sp..ep) %}
{% if pagenum == paginator.page %}
<li class="active"><a href="{% if pagenum == 1 %}/{% else %}/page{{pagenum}}{% endif %}" class="primary-background">{{ pagenum }}</a></li>
{% else %}
<li><a href="{% if pagenum == 1 %}/{% else %}/page{{pagenum}}{% endif %}">{{ pagenum }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.page < paginator.total_pages %}
<li><a href="/page{{ paginator.page | plus: 1 }}"><i class="fa fa-chevron-right"></i></a></li>
{% endif %}
</ul>
</div>
<!-- Pagination Ends-->
{% include footer.html %}
</div>
<!-- main wrapper Ends-->
<!-- Scripts Starts-->
<script src="/js/jquery-2.1.4.min.js"></script>
<script src="/js/init.js"></script>
<!-- Scripts Ends-->
</body>
</html>