-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
64 lines (64 loc) · 2.71 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
---
layout: default
---
{%- if jekyll.environment == "production" -%}
{%- include ads_header.html -%}
{%- endif -%}
{%- for post in paginator.posts -%}
<div class="blog-post">
<div class="blog-post-title"><a href="{{ post.url }}">{{ post.title }}</a></div>
<span class="blog-post-meta"><i class="fa fa-calendar"></i> {{ post.date | date: "%F %A"}}</span>
<p style="margin-top:10px;">
{%- if post.content contains "<!-- more -->" -%}
{{ post.content | split:"<!-- more -->" | first }}
{%- else -%}
{{ post.content | strip_html | truncatewords: 200 }}
{%- endif -%}
</p>
</div>
<div class="blog-post-footer">
<ul class="no-list" style="list-style: none; padding-left:0px;"><li>
{%- if post.tags.size == 0 -%}
<a class="label label-info" href="/categories.html"> None </a>
{%- else -%}
{%- for tag in post.tags -%}
<a class="label label-info" href="/categories.html#{{ tag }}"> {{ tag }} </a>
{%- if forloop.last -%}{%- else -%} {%- endif -%}
{%- endfor -%}
{%- endif -%}
<!--<a class="btn btn-default" style="float:right;" href="{{ post.url }}" type="button">View Details »</a>-->
</li></ul>
</div>
{%- endfor -%}
<div class="row"><center>
{% if page.site_filter == null and paginator.total_pages > 1 %}
<nav><ul class="pagination pagination-lg">
{% if paginator.previous_page %}
<li><a href="/" title="Go to newest articles">«</a></li>
{% if paginator.previous_page > 1 %}
<li><a href="/page{{ paginator.previous_page }}" title="Go to newer articles">‹</a></li>
{% else %}
<li><a href="/" title="Go to newer articles">‹</a></li>
{% endif %}
{% else %}
<li class="disabled"><a title="Go to newest articles">«</a></li>
<li class="disabled"><a title="Go to newer articles">‹</a></li>
{% endif %}
{% if paginator.next_page %}
<li class="disabled"><span>page <strong>{{ paginator.next_page | minus:1 }}</strong> of <strong>{{ paginator.total_pages }}</strong></span></li>
{% else %}
<li class="disabled"><span>page <strong>{{ paginator.total_pages }}</strong> of <strong>{{ paginator.total_pages }}</strong></span></li>
{% endif %}
{% if paginator.next_page %}
<li><a href="/page{{ paginator.next_page }}" title="Go to older articles">›</a></li>
<li><a href="/page{{ paginator.total_pages }}" title="Go to oldest articles">»</a></li>
{% else %}
<li class="disabled"><a title="Go to older articles">›</a></li>
<li class="disabled"><a title="Go to oldest articles">»</a></li>
{% endif %}
</ul></nav>
{% endif %}
</center></div>
{%- if jekyll.environment == "production" -%}
{%- include ads_footer.html -%}
{%- endif -%}